Skip to content

BUILD: remove condition on upload step #21035

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
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 }}
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