Trigger twine upload only for tagged commit.

This commit is contained in:
Syoyo Fujita
2023-04-20 19:35:21 +09:00
parent f1673e4be3
commit 229ed6698a

View File

@@ -5,6 +5,9 @@ build_and_store_wheels: &BUILD_AND_STORE_WHEELS
- cibuildwheel - cibuildwheel
wheels_artifacts: wheels_artifacts:
path: "wheelhouse/*" path: "wheelhouse/*"
# Upload only for tagged commit
only_if: $CIRRUS_TAG != ''
publish_script: publish_script:
- python -m pip install twine - python -m pip install twine
- python -m twine upload --repository-url https://upload.pypi.org/legacy/ --username __token__ wheelhouse/*.whl - python -m twine upload --repository-url https://upload.pypi.org/legacy/ --username __token__ wheelhouse/*.whl