Skip to content

Commit

Permalink
BUILD: combine upload steps
Browse files Browse the repository at this point in the history
  • Loading branch information
lithomas1 authored and mattip committed Feb 12, 2022
1 parent 5e2f055 commit cbc2d8d
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/wheels.yml
Expand Up @@ -137,6 +137,12 @@ jobs:
if: success()
shell: bash
run: |
# trigger an upload to
# https://anaconda.org/scipy-wheels-nightly/numpy
# for cron jobs or "Run workflow" (restricted to main branch).
# Tags will upload to
# https://anaconda.org/multibuild-wheels-staging/numpy
# The tokens were originally generated at anaconda.org
if [ "push" == "${{ github.event_name }}" ] && [ "${{ startsWith(github.ref, 'refs/tags/v') }}" ]; then
echo push and tag event
echo "ANACONDA_ORG=multibuild-wheels-staging" >> $GITHUB_ENV
Expand All @@ -151,17 +157,8 @@ jobs:
echo non-dispatch event
echo "ANACONDA_UPLOAD=false" >> $GITHUB_ENV
fi
- name: Upload wheels
# if: ${{ env.TOKEN }} # doesn't work
shell: bash
run: |
# trigger an upload to
# https://anaconda.org/scipy-wheels-nightly/numpy
# for cron jobs or "Run workflow" (restricted to main branch).
# Tags will upload to
# https://anaconda.org/multibuild-wheels-staging/numpy
# The tokens were originally generated at anaconda.org
echo ${PWD}
# Now do the upload as needed
# echo ${PWD}
if [ ${ANACONDA_UPLOAD} == true ]; then
if [ -z ${TOKEN} ]; then
echo no token set, not uploading
Expand Down

0 comments on commit cbc2d8d

Please sign in to comment.