Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix conda build #65

Merged
merged 2 commits into from
Feb 10, 2025
Merged
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
7 changes: 1 addition & 6 deletions .github/workflows/conda-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,13 @@ jobs:
token-exists:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
if: inputs.destination == 'anaconda'
steps:
- name: check if ANACONDA_TOKEN exists
env:
# cannot use secrets directly in conditionals
# see https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#using-secrets-in-a-workflow
anaconda_token: ${{ secrets.ANACONDA_TOKEN }}
if: env.anaconda_token == ''
if: env.anaconda_token == '' && inputs.destination == 'anaconda'
run: |
echo "the secret \"ANACONDA_TOKEN\" is not available, so the conda package cannot be published on release."
echo "Please go to \"settings \> secrets \> actions\" to create it before trying to build the conda package."
Expand Down Expand Up @@ -88,10 +87,6 @@ jobs:
- name: Add conda channel
run: conda config --add channels city-modelling-lab

- name: Add internal conda channel
if: inputs.destination == 'internal'
run: conda config --add channels https://packages.arup.com/conda

- name: Build conda package
run: conda mambabuild ${{ inputs.recipe_dir }}

Expand Down
Loading