Skip to content

Commit c72a582

Browse files
committed
Merge branch 'HotFix-0.5.1-backport_pr_59' into release-0.5.1
2 parents 47fbdfe + 99491ae commit c72a582

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/cicd.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ on:
2222
- main
2323
- develop
2424
- support-*
25+
release:
26+
types:
27+
- published
2528

2629
jobs:
2730
build:
@@ -73,5 +76,5 @@ jobs:
7376
# If this commit is the result of a Git tag, push the wheel and tar packages
7477
# to the PyPi registry
7578
- name: Publish to PyPI
76-
if: startsWith(github.ref, 'refs/tags')
79+
if: github.event_name == 'release' && github.event.action == 'published'
7780
run: twine upload --repository-url https://upload.pypi.org/legacy/ -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --skip-existing --verbose dist/*

0 commit comments

Comments
 (0)