Skip to content

Commit

Permalink
ci: change wheel build to trigger on release or manually
Browse files Browse the repository at this point in the history
  • Loading branch information
jrs65 committed Feb 25, 2022
1 parent 8d0ade8 commit ed4f22e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Build bitshuffle wheels and upload to PyPI

on: [pull_request]
on:
workflow_dispatch:
release:
types:
- published

jobs:
build_wheels:
Expand Down Expand Up @@ -76,9 +80,9 @@ jobs:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
# Upload to PyPI on every tag
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
# Alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'release' && github.event.action == 'published'
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v2
with:
Expand Down

0 comments on commit ed4f22e

Please sign in to comment.