diff options
author | Andrew Nelson <andyfaff@gmail.com> | 2022-12-08 10:53:20 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-07 16:53:20 -0700 |
commit | 6f9237e91ef26df62d40161458178f972db7ce26 (patch) | |
tree | 38b2459abc3e1c2902f35c784cd7bd5d2181c598 /tools | |
parent | 2aad439eec34a80aaac0fd61a9b8de809710efa5 (diff) | |
download | numpy-6f9237e91ef26df62d40161458178f972db7ce26.tar.gz |
CI: fix CIRRUS_TAG check when tagging. Closes #22730 (#22752)
* CI: fix CIRRUS_TAG check when tagging
* CI: cirrus upload on tag+maintenance
* MAINT: Break a long line.
Co-authored-by: Charles Harris <charlesr.harris@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ci/cirrus_general.yml | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/tools/ci/cirrus_general.yml b/tools/ci/cirrus_general.yml index f48e1035c..2ec2ad837 100644 --- a/tools/ci/cirrus_general.yml +++ b/tools/ci/cirrus_general.yml @@ -73,12 +73,16 @@ wheels_upload_task: export IS_SCHEDULE_DISPATCH="true" fi - if [[ "$CIRRUS_TAG" == "v*" ]]; then - export IS_PUSH="true" - fi - if [[ "$CIRRUS_BUILD_SOURCE" == "api" && "$CIRRUS_COMMIT_MESSAGE" == "API build for null" ]]; then export IS_SCHEDULE_DISPATCH="true" + # a manual build was started + if [[ "$CIRRUS_BUILD_SOURCE" == "api" && "$CIRRUS_COMMIT_MESSAGE" == "API build for null" ]]; then + export IS_SCHEDULE_DISPATCH="true" fi + # only upload wheels to staging if it's a tag beginning with 'v' and you're + # on a maintenance branch + if [[ "$CIRRUS_TAG" == v* ]] && [[ "$CIRRUS_BRANCH" == maintenance* ]]; then + export IS_PUSH="true" + fi # The name of the zip file is derived from the `wheels_artifact` line. # If you change the artifact line to `myfile_artifact` then it would be @@ -88,6 +92,8 @@ wheels_upload_task: unzip wheels.zip source ./tools/wheels/upload_wheels.sh - # set_travis_vars + # IS_PUSH takes precedence over IS_SCHEDULE_DISPATCH set_upload_vars - upload_wheels # Will be skipped if not a push/tag/scheduled build + + # Will be skipped if not a push/tag/scheduled build + upload_wheels |