Update examples/github-deploy.yml to upload on tags, as alternative to GitHub releases

Co-authored-by: Joe Rickerby <joerick@mac.com>
This commit is contained in:
Yannick Jadoul
2020-06-02 22:09:33 +02:00
committed by GitHub
co-authored by Joe Rickerby
parent 9c3f44d086
commit 4c3cbf702c
+4 -1
View File
@@ -77,4 +77,7 @@ jobs:
user: __token__
password: ${{ secrets.pypi_password }}
# To test: repository_url: https://test.pypi.org/legacy/
if: github.event_name == 'release' && github.event.action == 'published'
# upload to PyPI on every tag starting with 'v'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'release' && github.event.action == 'published'