diff --git a/.github/workflows/conda_build.yml b/.github/workflows/conda_build.yml index 204e4dd98f..9487fb5bbc 100644 --- a/.github/workflows/conda_build.yml +++ b/.github/workflows/conda_build.yml @@ -42,7 +42,7 @@ jobs: echo "GitHub head ref is: $GITHUB_HEAD_REF" - name: Configure Auto-Upload - if: github.head_ref == 'fix_conda_build' + if: github.ref == 'refs/heads/stable' run: | conda config --set anaconda_upload yes @@ -58,10 +58,8 @@ jobs: echo "CONDA_TOKEN=$CONDA_TOKEN" >> $GITHUB_ENV # Conditionally add the --token and --user flags for stable branches - if [[ "${GITHUB_HEAD_REF}" == "fix_conda_build" ]]; then - echo "Build command: conda-build --token *** --user rmg .conda" + if [[ "${GITHUB_REF}" == "refs/heads/stable" ]]; then conda-build --token "$CONDA_TOKEN" --user rmg .conda - else - echo "Build command: conda-build .conda" + else conda-build .conda fi