@@ -17,12 +17,14 @@ jobs:
1717 fetch-depth : 0
1818
1919 # 2) Install Miniconda and conda-build/anaconda-client
20- - name : Install Miniconda and tools
21- run : |
22- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
23- bash miniconda.sh -b -p $HOME/miniconda
24- eval "$($HOME/miniconda/bin/conda shell.bash hook)"
25- conda install -y conda-build anaconda-client
20+ - name : create environment with conda
21+ uses : conda-incubator/setup-miniconda@v3
22+ with :
23+ channels : conda-forge,defaults
24+ auto-activate-base : false
25+ auto-update-conda : true
26+ activate-environment : build-env
27+ environment-file : conda-recipe/build-env.yaml
2628
2729 # 3) Determine VERSION (strip the leading “v”) and compute SHA256
2830 - name : Set version and SHA256
7678 # 5) Build the conda package
7779 - name : Build conda package
7880 run : |
79- eval "$($HOME/miniconda/bin/conda shell.bash hook)"
8081 cd conda-recipe
8182 conda-build . --output-folder ../conda-build-artifacts
8283
8586 env :
8687 ANACONDA_TOKEN : ${{ secrets.ANACONDA_TOKEN }}
8788 run : |
88- eval "$($HOME/miniconda/bin/conda shell.bash hook)"
89- PACKAGE=$(ls conda-build-artifacts/linux-64/aligncount-demo-${{ steps.vars.outputs.VERSION }}-*.tar.bz2)
89+ PACKAGE=$(ls conda-build-artifacts/linux-64/${GITHUB_REPOSITORY##*/}-${{ steps.vars.outputs.VERSION }}-*.tar.bz2)
9090 anaconda -t $ANACONDA_TOKEN upload $PACKAGE --user $ANACONDA_USER --label main --force
0 commit comments