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.
1 parent 33d9565 commit 99491aeCopy full SHA for 99491ae
.github/workflows/cicd.yml
@@ -16,6 +16,9 @@ on:
16
branches: [ main, develop ]
17
pull_request:
18
19
+ release:
20
+ types:
21
+ - published
22
23
jobs:
24
build:
@@ -65,5 +68,5 @@ jobs:
65
68
# If this commit is the result of a Git tag, push the wheel and tar packages
66
69
# to the PyPi registry
67
70
- name: Publish to PyPI
- if: startsWith(github.ref, 'refs/tags')
71
+ if: github.event_name == 'release' && github.event.action == 'published'
72
run: twine upload --repository-url https://upload.pypi.org/legacy/ -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --skip-existing --verbose dist/*
0 commit comments