@@ -145,11 +145,14 @@ jobs:
145
145
name : wheel-${{ matrix.only }}
146
146
147
147
upload_release_assets :
148
- name : Upload Release Assets
149
- needs : [ build_wheels ]
148
+ name : Upload Release Wheels
149
+ needs : [ build_wheels, Linux, non-Linux ]
150
150
runs-on : ubuntu-latest
151
151
if : startsWith(github.ref, 'refs/tags')
152
152
153
+ permissions :
154
+ contents : write # to create GitHub release (softprops/action-gh-release)
155
+
153
156
steps :
154
157
- name : Download bdist files
155
158
uses : actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
@@ -208,12 +211,6 @@ jobs:
208
211
path : wheelhouse_*/*-m*linux*.whl # manylinux / musllinux
209
212
if-no-files-found : ignore
210
213
211
- - name : Release
212
- uses : softprops/action-gh-release@v1
213
- if : startsWith(github.ref, 'refs/tags/')
214
- with :
215
- files : wheelhouse_*/*-m*linux*.whl # manylinux / musllinux
216
-
217
214
non-Linux :
218
215
strategy :
219
216
# Allows for matrix sub-jobs to fail without canceling the rest
@@ -278,9 +275,3 @@ jobs:
278
275
name : wheels-${{ matrix.pyversion }}-${{ matrix.os }}
279
276
path : dist/*.whl
280
277
if-no-files-found : ignore
281
-
282
- - name : Release
283
- uses : softprops/action-gh-release@v1
284
- if : startsWith(github.ref, 'refs/tags/')
285
- with :
286
- files : dist/*.whl
0 commit comments