Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/conda-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,35 @@ on:
- completed

jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Set env var
id: set-env-var-version
run: |
echo VERSION_NUMBER=$(python -c 'import bigtree; print(bigtree.__version__)') >> $GITHUB_OUTPUT
- name: Set env var 2
id: set-env-var-sha256
env:
VERSION_NUMBER: ${{ steps.set-env-var-version.outputs.VERSION_NUMBER }}
run: |
echo SHA256=$(curl -sL https://github.com/kayjan/bigtree/archive/${VERSION_NUMBER}.tar.gz | openssl sha256) >> $GITHUB_OUTPUT
publish:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v3
- name: Set up Conda
run: |
conda install -c conda-forge conda-build conda-verify anaconda-client
- name: Publish to conda
env:
CONDA_USERNAME: ${{ secrets.CONDA_USERNAME }}
CONDA_PASSWORD: ${{ secrets.CONDA_PASSWORD }}
VERSION_NUMBER: ${{ steps.set-env-var-version.outputs.VERSION_NUMBER }}
SHA256: ${{ steps.set-env-var-sha256.outputs.SHA256 }}
run: |
cd conda
anaconda login --username $CONDA_USERNAME --password $CONDA_PASSWORD
conda config --set anaconda_upload yes
conda build -c conda-forge --output-folder . .
7 changes: 3 additions & 4 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{% set name = "bigtree" %}
{% set version = "0.14.3" %}

package:
name: "{{ name|lower }}"
version: "{{ version }}"
version: {{ environ.get('VERSION_NUMBER') }}

source:
url: https://github.com/kayjan/{{ name }}/archive/refs/tags/{{ version }}.tar.gz
sha256: b9e5390879381acfd3ca9018892f9518c821d47c768bb94adf29d069198ebbdb
url: https://github.com/kayjan/{{ name }}/archive/refs/tags/{{ environ.get('VERSION_NUMBER') }}.tar.gz
sha256: {{ environ.get('SHA256') }}

build:
number: 0
Expand Down