Skip to content

Commit

Permalink
use repo secrets for uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Feb 13, 2022
1 parent 88a0fd9 commit 5585fa4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
name: ${{ matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
path: ./wheelhouse/*.whl

- name: Setup Upload Variables
- name: Upload wheels
if: success()
shell: bash
run: |
Expand All @@ -146,11 +146,11 @@ jobs:
if [ "push" == "${{ github.event_name }}" ] && [ "${{ startsWith(github.ref, 'refs/tags/v') }}" ]; then
echo push and tag event
ANACONDA_ORG=multibuild-wheels-staging
TOKEN=$NUMPY_STAGING_UPLOAD_TOKEN
TOKEN=${{ secrets.NUMPY_STAGING_UPLOAD_TOKEN }}
elif [ "schedule" == "${{ github.event_name }}" ] || [ "workflow_dispatch" == "${{ github.event_name }}" ]; then
echo scheduled or dispatched event
ANACONDA_ORG=scipy-wheels-nightly
TOKEN=$NUMPY_NIGHTLY_UPLOAD_TOKEN
TOKEN=${{ secrets.NUMPY_NIGHTLY_UPLOAD_TOKEN }}
else
echo non-dispatch event
fi
Expand Down

0 comments on commit 5585fa4

Please sign in to comment.