diff options
author | Andrew Nelson <andyfaff@gmail.com> | 2022-11-22 15:02:35 +1100 |
---|---|---|
committer | Andrew Nelson <andyfaff@gmail.com> | 2022-11-22 15:02:35 +1100 |
commit | 03f81a512103a376110a65a0466910d8320bb00a (patch) | |
tree | 2a2f39c0a44b827f64ab336227172cdb6927ecfd /tools | |
parent | 816b73e7a3f9d562fad8d90f630c009d50b26744 (diff) | |
download | numpy-03f81a512103a376110a65a0466910d8320bb00a.tar.gz |
CI: enable upload
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ci/cirrus_general.yml | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/tools/ci/cirrus_general.yml b/tools/ci/cirrus_general.yml index 04ce318f1..101217639 100644 --- a/tools/ci/cirrus_general.yml +++ b/tools/ci/cirrus_general.yml @@ -57,9 +57,8 @@ cirrus_wheels_upload_task: platform: linux # env: -# # created as SCIPY_STAGING_UPLOAD_TOKEN_CIRRUS and SCIPY_NIGHTLY_UPLOAD_TOKEN_CIRRUS -# SCIPY_STAGING_UPLOAD_TOKEN: ENCRYPTED[] -# SCIPY_NIGHTLY_UPLOAD_TOKEN: ENCRYPTED[] +# NUMPY_STAGING_UPLOAD_TOKEN: ENCRYPTED[] +# NUMPY_NIGHTLY_UPLOAD_TOKEN: ENCRYPTED[] upload_script: | apt-get install -y python3-venv python-is-python3 curl @@ -71,13 +70,10 @@ cirrus_wheels_upload_task: export IS_SCHEDULE_DISPATCH="true" fi - # If it's a push event to a maintenance branch, and the commit message contains - # '[wheel build]' then upload to staging - COMMIT_MSG=$(git log --no-merges -1) - if [[ "$COMMIT_MSG" == *"[wheel build]"* ]] && [[ $CIRRUS_BRANCH == maintenance* ]]; then - export IS_PUSH="true" + if [[ "$CIRRUS_TAG" == "v*" ]]; 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 # called myfile.zip @@ -86,3 +82,6 @@ cirrus_wheels_upload_task: unzip wheels.zip # TODO upload wheels + source ./tools/wheels/upload_wheels.sh + set_upload_vars + upload_wheels # Will be skipped if not a push/tag/scheduled build |