Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 28fee01

Browse files
committed
ci: Fix condition for publishing wheels
The wheel workflow is only triggered on pushes and pull requests. So the condition to publish must be based on that, not on generating a GitHub release.
1 parent 9dd9cb4 commit 28fee01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ jobs:
194194
if-no-files-found: error
195195

196196
publish:
197-
if: github.event_name == 'release' && github.event.action == 'published'
197+
if: github.event_name == 'push' && github.ref_type == 'tag'
198198
name: Upload release to PyPI
199199
needs: [build_sdist, build_wheels]
200200
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)