Skip to content

Commit 99491ae

Browse files
committed
Backport 'Switch release tracking logic' and 'Switch action check'
This is a squashed commit of the non-syntax changes from PR 59. References: * #59 Signed-off-by: Alex Nelson <[email protected]>
1 parent 33d9565 commit 99491ae

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
@@ -16,6 +16,9 @@ on:
1616
branches: [ main, develop ]
1717
pull_request:
1818
branches: [ main, develop ]
19+
release:
20+
types:
21+
- published
1922

2023
jobs:
2124
build:
@@ -65,5 +68,5 @@ jobs:
6568
# If this commit is the result of a Git tag, push the wheel and tar packages
6669
# to the PyPi registry
6770
- name: Publish to PyPI
68-
if: startsWith(github.ref, 'refs/tags')
71+
if: github.event_name == 'release' && github.event.action == 'published'
6972
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)