File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches : [ main ]
6
6
release :
7
- types : [ created ]
7
+ types : [ released ]
8
8
pull_request : # also build on PRs touching this file
9
9
paths :
10
10
- " .github/workflows/release.yaml"
57
57
build_wheels :
58
58
name : Build ${{ matrix.arch }} wheels on ${{ matrix.os }}
59
59
runs-on : ${{ matrix.os }}
60
+ continue-on-error : ${{ github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/') }}
60
61
strategy :
61
62
fail-fast : false
62
63
matrix :
@@ -163,6 +164,7 @@ jobs:
163
164
publish :
164
165
name : Publish on PyPI
165
166
needs : [make_sdist,build_wheels]
167
+ if : github.event_name != 'pull_request'
166
168
runs-on : ubuntu-latest
167
169
steps :
168
170
- uses : actions/download-artifact@v4
@@ -192,7 +194,7 @@ jobs:
192
194
193
195
- name : Upload Wheels to PyPI
194
196
# release on every tag
195
- if : github.event_name == 'release' && startsWith(github.ref, 'refs/tags/')
197
+ if : ${{ github.event_name == 'release' && startsWith(github.ref, 'refs/tags/') }}
196
198
uses : pypa/gh-action-pypi-publish@release/v1
197
199
with :
198
200
user : __token__
You can’t perform that action at this time.
0 commit comments