Skip to content

Commit

Permalink
Update build-wheels-push.yml
Browse files Browse the repository at this point in the history
Only push to pypi on release
  • Loading branch information
galabovaa committed Jun 11, 2024
1 parent 0c240d8 commit 72a4613
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-wheels-push.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: build-wheels-push

on: push

# on:
# release:
# types:
# - published
# on: push
on:
release:
types:
- published

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
needs: [build_wheels, build_sdist]

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

environment:
name: pypi
Expand Down

0 comments on commit 72a4613

Please sign in to comment.