Skip to content

Commit 333ac65

Browse files
cwebster2claude
andcommitted
fix(ci): use env var for anaconda token instead of CLI arg
Newer anaconda-client versions reject the --token CLI argument with "invalid file_or_token value". Switch to ANACONDA_API_TOKEN env var which is recognized automatically by both anaconda-client and conda-build, bypassing the stricter CLI validation. Co-authored-by: Claude <claude@anthropic.com>
1 parent 873e596 commit 333ac65

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish-conda.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424
conda-channels: anaconda, conda-forge, cwebster2
2525
- name: Build
2626
env:
27-
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
27+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
2828
PACKAGE_VERSION: ${{ github.event.release.tag_name || '' }}
2929
run: |
3030
if [ -z "$PACKAGE_VERSION" ]; then
3131
export PACKAGE_VERSION=$(cat VERSION | tr -d '[:space:]')
3232
fi
3333
conda install conda-build anaconda-client
3434
conda config --set anaconda_upload yes
35-
conda-build --token $ANACONDA_TOKEN .conda
35+
conda-build .conda

0 commit comments

Comments
 (0)