summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/ci/cirrus_general.yml18
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