Skip to content

Commit f208c47

Browse files
committed
Test 6
1 parent b6981d1 commit f208c47

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/conda_build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
echo "GitHub head ref is: $GITHUB_HEAD_REF"
4343
4444
- name: Configure Auto-Upload
45-
if: github.head_ref == 'fix_conda_build'
45+
if: github.ref == 'refs/heads/stable'
4646
run: |
4747
conda config --set anaconda_upload yes
4848
@@ -58,10 +58,8 @@ jobs:
5858
echo "CONDA_TOKEN=$CONDA_TOKEN" >> $GITHUB_ENV
5959
6060
# Conditionally add the --token and --user flags for stable branches
61-
if [[ "${GITHUB_HEAD_REF}" == "fix_conda_build" ]]; then
62-
echo "Build command: conda-build --token *** --user rmg .conda"
61+
if [[ "${GITHUB_REF}" == "refs/heads/stable" ]]; then
6362
conda-build --token "$CONDA_TOKEN" --user rmg .conda
64-
else
65-
echo "Build command: conda-build .conda"
63+
else
6664
conda-build .conda
6765
fi

0 commit comments

Comments
 (0)