Skip to content

Commit 70a9719

Browse files
committed
run release only on publish event
1 parent abdd31c commit 70a9719

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: release
22

3-
on: push
3+
on:
4+
release:
5+
types: [published]
46

57
jobs:
68
publish-pypi:
@@ -16,7 +18,6 @@ jobs:
1618
- name: Generating distribution archives
1719
run: python setup.py sdist bdist_wheel
1820
- name: Publish distribution 📦 to PyPI
19-
if: startsWith(github.event.ref, 'refs/tags')
2021
uses: pypa/gh-action-pypi-publish@release/v1
2122
with:
2223
user: __token__

0 commit comments

Comments
 (0)