@@ -142,20 +142,6 @@ jobs:
142
142
path : .cov/html
143
143
retention-days : 7
144
144
145
- release :
146
- name : " Release project"
147
- if : github.event_name == 'push' && contains(github.ref, 'refs/tags')
148
- needs : [docs-build, tests]
149
- runs-on : ubuntu-latest
150
- steps :
151
- - name : Checkout code
152
- uses : actions/checkout@v4
153
-
154
- - name : Release to GitHub
155
- uses : softprops/action-gh-release@v2
156
- with :
157
- generate_release_notes : true
158
-
159
145
upload_docs_release :
160
146
name : Upload release documentation
161
147
if : github.event_name == 'push' && contains(github.ref, 'refs/tags')
@@ -233,7 +219,7 @@ jobs:
233
219
binaries :
234
220
name : Create binaries
235
221
if : github.event_name == 'push' && contains(github.ref, 'refs/tags')
236
- needs : [release ]
222
+ needs : [docs-build, tests ]
237
223
runs-on : ${{ matrix.os }}
238
224
strategy :
239
225
fail-fast : false
@@ -313,4 +299,37 @@ jobs:
313
299
- uses : actions/upload-artifact@v4
314
300
with :
315
301
name : windows-latest-binaries-signed
316
- path : signtool/installer/*.exe
302
+ path : signtool/installer/*.exe
303
+ release :
304
+ name : Create release
305
+ needs : [sign-windows-binary, binaries]
306
+ runs-on : ubuntu-latest
307
+ steps :
308
+ - name : Checkout code
309
+ uses : actions/checkout@v4
310
+
311
+ - name : Download Windows binaries
312
+ uses : actions/download-artifact@v4
313
+ with :
314
+ name : windows-latest-binaries-signed
315
+ path : dist
316
+
317
+ - name : Download Linux binaries
318
+ uses : actions/download-artifact@v4
319
+ with :
320
+ name : ubuntu-latest-binaries
321
+ path : dist
322
+
323
+ - name : Download MacOS binaries
324
+ uses : actions/download-artifact@v4
325
+ with :
326
+ name : macos-latest-binaries
327
+ path : dist
328
+
329
+ - name : Release to GitHub
330
+ uses : softprops/action-gh-release@v2
331
+ with :
332
+ fail_on_unmatched_files : true
333
+ generate_release_notes : true
334
+ files : |
335
+ dist/${{ github.event.repository.name }}-**
0 commit comments