Upload wheels to GitHub Releases on tags

This commit is contained in:
Hugo 2020-07-07 18:03:04 +03:00
parent 46d3c35734
commit fc2896f3e2

View File

@ -7,10 +7,6 @@ env:
- BUILD_DEPENDS="" - BUILD_DEPENDS=""
- TEST_DEPENDS="pytest pytest-cov" - TEST_DEPENDS="pytest pytest-cov"
- MACOSX_DEPLOYMENT_TARGET=10.10 - MACOSX_DEPLOYMENT_TARGET=10.10
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
# Following generated with
# travis encrypt -r python-pillow/pillow-wheels WHEELHOUSE_UPLOADER_SECRET=<the api key>
- secure: "ky76goiK6n4k8V9/uG340GSFVwmjE7G76l9xbhhGZkcph4eTwN5VRM/tqyJvlNs/HZOhKSILfyGBeaG8qf7gHmwr0touPT+EjWn4TNV8iyVj75ZshgRE9DuaIAfdH89gW2m+BmvBDyzi0JE3KVCu55NcGm8h7Ecl6nmQ/c2iROY="
language: python language: python
# Default Python version is usually 3.6 # Default Python version is usually 3.6
@ -219,16 +215,20 @@ install:
- if [[ -n "$LATEST" ]]; then BUILD_COMMIT=master; fi - if [[ -n "$LATEST" ]]; then BUILD_COMMIT=master; fi
- clean_code $REPO_DIR $BUILD_COMMIT - clean_code $REPO_DIR $BUILD_COMMIT
- build_wheel $REPO_DIR $PLAT - build_wheel $REPO_DIR $PLAT
- ls -l "${TRAVIS_BUILD_DIR}/wheelhouse/"
script: script:
- install_run $PLAT - install_run $PLAT
after_success: # Upload wheels to GitHub Releases
# Upload wheels to Rackspace container deploy:
- if [[ -z "$LATEST" ]]; then provider: releases
pip install wheelhouse-uploader; api_key:
python -m wheelhouse_uploader upload --local-folder secure: PTgVG7DrYa2FTSQOq0eDaHDZb1vy0vf6MulyuoXMg8rssPQgJ/mYxRpNDK4V0EKolpN7f8s/OGg+fpNNtp5pOCJGsx0Okcf+YB2ac+Xl7DQPBucbDKFXs1ndf/ny6umk0TXX8JTrDp/mJDJf401yx1+qsZ6X/PFvchXvXVrQ+SQ=
${TRAVIS_BUILD_DIR}/wheelhouse/ file_glob: true
--no-update-index file: "${TRAVIS_BUILD_DIR}/${WHEEL_SDIR}/*.whl"
wheels; on:
fi condition: -z "$LATEST"
repo: python-pillow/pillow-wheels
tags: true
skip_cleanup: true