Skip to content

Commit 70ed9fb

Browse files
jswhit2jswhit2
authored andcommitted
upload to pypi when github release made
1 parent d1c28cd commit 70ed9fb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/cibuildwheel.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ jobs:
198198
needs: [build_bdist, build_sdist, build_wheels_winmac, build_wheels_windows_arm]
199199
name: "Publish to PyPI"
200200
runs-on: ubuntu-22.04
201-
# upload to PyPI for every tag starting with 'v'
202-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
201+
# upload to PyPI when github release made.
202+
if: github.event_name == 'release' && github.event.action == 'published'
203203
steps:
204204
- uses: actions/download-artifact@v8
205205
with:

0 commit comments

Comments
 (0)