Skip to content

Commit 92e9597

Browse files
authored
Update release.yml
1 parent dabc462 commit 92e9597

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Publish Python distribution package to PyPI
22

3-
on: push
3+
on:
4+
release:
5+
types: [created]
6+
47

58
jobs:
69
build:
@@ -31,7 +34,6 @@ jobs:
3134

3235
pypi-publish:
3336
name: Upload release to PyPI
34-
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
3537
needs:
3638
- build
3739
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)