Skip to content

Commit 94ac9b3

Browse files
Fix conda build (#65)
1 parent 28b7024 commit 94ac9b3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/conda-build.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,13 @@ jobs:
5353
token-exists:
5454
runs-on: ubuntu-latest
5555
environment: ${{ inputs.environment }}
56-
if: inputs.destination == 'anaconda'
5756
steps:
5857
- name: check if ANACONDA_TOKEN exists
5958
env:
6059
# cannot use secrets directly in conditionals
6160
# see https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#using-secrets-in-a-workflow
6261
anaconda_token: ${{ secrets.ANACONDA_TOKEN }}
63-
if: env.anaconda_token == ''
62+
if: env.anaconda_token == '' && inputs.destination == 'anaconda'
6463
run: |
6564
echo "the secret \"ANACONDA_TOKEN\" is not available, so the conda package cannot be published on release."
6665
echo "Please go to \"settings \> secrets \> actions\" to create it before trying to build the conda package."
@@ -88,10 +87,6 @@ jobs:
8887
- name: Add conda channel
8988
run: conda config --add channels city-modelling-lab
9089

91-
- name: Add internal conda channel
92-
if: inputs.destination == 'internal'
93-
run: conda config --add channels https://packages.arup.com/conda
94-
9590
- name: Build conda package
9691
run: conda mambabuild ${{ inputs.recipe_dir }}
9792

0 commit comments

Comments
 (0)