From e047b995d1eeeda984f2f8eba73bfbbdde6c1c0f Mon Sep 17 00:00:00 2001 From: ssun30 Date: Fri, 22 Nov 2024 16:17:38 -0500 Subject: [PATCH] Test 1 --- .github/workflows/conda_build.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/conda_build.yml b/.github/workflows/conda_build.yml index 80bad63965..9d56cfc4ce 100644 --- a/.github/workflows/conda_build.yml +++ b/.github/workflows/conda_build.yml @@ -34,10 +34,10 @@ jobs: activate-environment: "" - name: Install Build Tools - run: mamba install python anaconda-client conda-build + run: mamba install python anaconda-client conda-build conda-verify - name: Configure Auto-Upload - if: github.ref == 'refs/heads/stable' + if: github.ref == 'refs/heads/fix_conda_build' run: | config config --set anaconda_upload yes @@ -52,7 +52,9 @@ jobs: echo "CONDA_TOKEN=$CONDA_TOKEN" >> $GITHUB_ENV - # Build the Conda binary - conda-build --token "$CONDA_TOKEN" --user rmg .conda - - + # Conditionally add the --token and --user flags for stable branches + if [[ "${GITHUB_REF}" == "refs/heads/fix_conda_build" ]]; then + conda-build --token "$CONDA_TOKEN" --user rmg .conda + else + conda-build .conda + fi