Skip to content

Commit

Permalink
Removed configure auto-upload from workflow
Browse files Browse the repository at this point in the history
This step is removed because the conda-build
command already specifies which channel the package
is uploaded to, thus making the anaconda_upload
variable redundant

Also added conda-verify to verify the package
  • Loading branch information
ssun30 committed Nov 22, 2024
1 parent ade846d commit 6130013
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/conda_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ jobs:
activate-environment: ""

- name: Install Build Tools
run: mamba install python anaconda-client conda-build

- name: Configure Auto-Upload
if: github.ref == 'refs/heads/stable'
run: |
mamba config --set anaconda_upload yes
run: mamba install python anaconda-client conda-build conda-verify

- name: Build Binary
run: |
Expand All @@ -51,8 +46,10 @@ jobs:
fi
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/stable" ]]; then
conda-build --token "$CONDA_TOKEN" --user rmg .conda
else
conda-build .conda
fi

0 comments on commit 6130013

Please sign in to comment.