From d81095cb3f9a093a9370aa8f152169d0a25efc50 Mon Sep 17 00:00:00 2001 From: ssun30 Date: Thu, 21 Nov 2024 18:40:03 -0500 Subject: [PATCH] Added debug info for conda-build --- .github/workflows/conda_build.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/conda_build.yml b/.github/workflows/conda_build.yml index 0aa2abe261..3ab923b017 100644 --- a/.github/workflows/conda_build.yml +++ b/.github/workflows/conda_build.yml @@ -28,9 +28,18 @@ 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 + export CONDA_TOKEN="${{ secrets.ANACONDA_TOKEN:-default_value }}" echo "CONDA_TOKEN=$CONDA_TOKEN" >> $GITHUB_ENV + + # Add the conda-forge channel conda config --add channels conda-forge + + # Debug: Check environment and inputs + conda info + conda list + ls -al .conda + + # Build the Conda binary conda-build --token "$CONDA_TOKEN" --user rmg .conda +