Skip to content

Commit 72a4613

Browse files
authored
Update build-wheels-push.yml
Only push to pypi on release
1 parent 0c240d8 commit 72a4613

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build-wheels-push.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: build-wheels-push
22

3-
on: push
4-
5-
# on:
6-
# release:
7-
# types:
8-
# - published
3+
# on: push
4+
5+
on:
6+
release:
7+
types:
8+
- published
99

1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
@@ -93,7 +93,7 @@ jobs:
9393
needs: [build_wheels, build_sdist]
9494

9595
# upload to PyPI on every tag starting with 'v'
96-
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
96+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
9797

9898
environment:
9999
name: pypi

0 commit comments

Comments
 (0)