Skip to content

Commit

Permalink
only run anaconda upload on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
aryarm authored Nov 14, 2024
1 parent 3633594 commit 2ef75de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ jobs:
shell: bash -el {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
# if: ${{ (env.ANACONDA_API_TOKEN != '') && (github.ref == 'ref/head/master') && (steps.artifact-upload.outputs.artifact-id != '') }}
if: ${{ (env.ANACONDA_API_TOKEN != '') && (steps.artifact-upload.outputs.artifact-id != '') }}
if: ${{ (github.ref == 'ref/head/main') && (env.ANACONDA_API_TOKEN != '') && (steps.artifact-upload.outputs.artifact-id != '') }}
run: |
anaconda upload -m ${{ env.CONDA }}/envs/biobuild/conda-bld/*/*.tar.bz2

0 comments on commit 2ef75de

Please sign in to comment.