File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 2828 conda config --set anaconda_upload yes
2929 - name : Build Binary
3030 run : |
31- # set a default value to the conda_token if needed (like from forks)
32- : "${CONDA_TOKEN:=${{ secrets.ANACONDA_TOKEN }}}"
33- : "${CONDA_TOKEN:=default_value}"
31+ # Set the CONDA_TOKEN environment variable
32+ if [ -z "${{ secrets.ANACONDA_TOKEN }}" ]; then
33+ export CONDA_TOKEN="default_value"
34+ else
35+ export CONDA_TOKEN="${{ secrets.ANACONDA_TOKEN }}"
36+ fi
37+
38+ echo "Using CONDA_TOKEN=${CONDA_TOKEN}"
39+
3440 echo "CONDA_TOKEN=$CONDA_TOKEN" >> $GITHUB_ENV
41+
42+ # Add the conda-forge channel
3543 conda config --add channels conda-forge
44+
45+ # Build the Conda binary
3646 conda-build --token "$CONDA_TOKEN" --user rmg .conda
47+
48+
You can’t perform that action at this time.
0 commit comments