From 5e2f0557c81ce9e3dcc81b366c368f86bd310c0c Mon Sep 17 00:00:00 2001 From: mattip Date: Fri, 11 Feb 2022 13:17:33 +0200 Subject: [PATCH 1/2] BUILD: remove condition on upload step --- .github/workflows/wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 9655f23f60e3..e3a036131e4c 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -152,7 +152,7 @@ jobs: echo "ANACONDA_UPLOAD=false" >> $GITHUB_ENV fi - name: Upload wheels - if: ${{ env.TOKEN }} + # if: ${{ env.TOKEN }} # doesn't work shell: bash run: | # trigger an upload to From cbc2d8dae5c8b15300a7ab8c659722cb311b0d8c Mon Sep 17 00:00:00 2001 From: Thomas Li <47963215+lithomas1@users.noreply.github.com> Date: Sat, 12 Feb 2022 19:44:46 +0200 Subject: [PATCH 2/2] BUILD: combine upload steps --- .github/workflows/wheels.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index e3a036131e4c..7cb5df55c6a9 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -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 @@ -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