Skip to content

Commit

Permalink
Added debug info for conda-build
Browse files Browse the repository at this point in the history
  • Loading branch information
ssun30 committed Nov 21, 2024
1 parent 64dd3b6 commit 7cc821d
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/conda_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,21 @@ jobs:
conda config --set anaconda_upload yes
- name: Build Binary
run: |
# set a default value to the conda_token if needed (like from forks)
: "${CONDA_TOKEN:=${{ secrets.ANACONDA_TOKEN }}}"
: "${CONDA_TOKEN:=default_value}"
# Set the CONDA_TOKEN environment variable
if [ -z "${{ secrets.ANACONDA_TOKEN }}" ]; then
export CONDA_TOKEN="default_value"
else
export CONDA_TOKEN="${{ secrets.ANACONDA_TOKEN }}"
fi
echo "Using CONDA_TOKEN=${CONDA_TOKEN}"
echo "CONDA_TOKEN=$CONDA_TOKEN" >> $GITHUB_ENV
# Add the conda-forge channel
conda config --add channels conda-forge

# Build the Conda binary
conda-build --token "$CONDA_TOKEN" --user rmg .conda


0 comments on commit 7cc821d

Please sign in to comment.