Skip to content

Commit

Permalink
Update build_wheels.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
perara authored Apr 7, 2023
1 parent de60ac1 commit 88acfad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build_wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Build Wheels
on:
workflow_dispatch:
push:
release:
types:
- created

jobs:
build_wheels:
Expand Down Expand Up @@ -49,7 +52,7 @@ jobs:
publish_wheels_to_release_page:
name: Publish wheels to Release Page
needs: build_wheels
if: github.event_name == 'release'
if: github.event_name == 'release' && github.event.action == 'created'
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -79,7 +82,7 @@ jobs:
publish_wheels_to_pypi:
name: Publish wheels to PyPI
needs: build_wheels
if: github.event_name == 'release'
if: github.event_name == 'release' && github.event.action == 'created'
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 88acfad

Please sign in to comment.