We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 47fbdfe + 99491ae commit c72a582Copy full SHA for c72a582
.github/workflows/cicd.yml
@@ -22,6 +22,9 @@ on:
22
- main
23
- develop
24
- support-*
25
+ release:
26
+ types:
27
+ - published
28
29
jobs:
30
build:
@@ -73,5 +76,5 @@ jobs:
73
76
# If this commit is the result of a Git tag, push the wheel and tar packages
74
77
# to the PyPi registry
75
78
- name: Publish to PyPI
- if: startsWith(github.ref, 'refs/tags')
79
+ if: github.event_name == 'release' && github.event.action == 'published'
80
run: twine upload --repository-url https://upload.pypi.org/legacy/ -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --skip-existing --verbose dist/*
0 commit comments