Skip to content

Commit 07ebb6a

Browse files
committed
fix pypi publish action
1 parent c6a2295 commit 07ebb6a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/production.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
name: Build sdist and wheel and publish to PyPI
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
branches:
9-
- master
4+
release:
5+
types:
6+
- published
107

118
jobs:
129
build_sdist:
@@ -83,7 +80,6 @@ jobs:
8380
needs: [build_arch_wheels, build_wheels, build_sdist]
8481
runs-on: ubuntu-latest
8582
environment: PyPI release
86-
if: github.event_name == 'release' && github.event.action == 'published'
8783
steps:
8884
- uses: actions/download-artifact@v3
8985
with:

0 commit comments

Comments
 (0)