Skip to content

Commit ed4f22e

Browse files
committed
ci: change wheel build to trigger on release or manually
1 parent 8d0ade8 commit ed4f22e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/wheels.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Build bitshuffle wheels and upload to PyPI
22

3-
on: [pull_request]
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types:
7+
- published
48

59
jobs:
610
build_wheels:
@@ -76,9 +80,9 @@ jobs:
7680
needs: [build_wheels, build_sdist]
7781
runs-on: ubuntu-latest
7882
# Upload to PyPI on every tag
79-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
83+
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
8084
# Alternatively, to publish when a GitHub Release is created, use the following rule:
81-
# if: github.event_name == 'release' && github.event.action == 'published'
85+
if: github.event_name == 'release' && github.event.action == 'published'
8286
steps:
8387
- uses: actions/download-artifact@v2
8488
with:

0 commit comments

Comments
 (0)