45
45
run : python -m build
46
46
47
47
- name : Upload artifacts
48
- uses : actions/upload-artifact@v3
48
+ uses : actions/upload-artifact@v4
49
49
with :
50
50
name : python-artifacts
51
51
path : ddev/dist/*
@@ -142,7 +142,7 @@ jobs:
142
142
143
143
- name : Download Python artifacts
144
144
if : ${{ !startsWith(github.event.ref, 'refs/tags') }}
145
- uses : actions/download-artifact@v3
145
+ uses : actions/download-artifact@v4
146
146
with :
147
147
name : python-artifacts
148
148
path : ddev/dist
@@ -214,9 +214,9 @@ jobs:
214
214
215
215
- name : Upload staged managed archive
216
216
if : runner.os != 'Linux'
217
- uses : actions/upload-artifact@v3
217
+ uses : actions/upload-artifact@v4
218
218
with :
219
- name : staged-managed-${{ runner.os }}
219
+ name : staged-managed-${{ runner.os }}-${{ matrix.job.target }}
220
220
path : ddev/packaging/*
221
221
if-no-files-found : error
222
222
@@ -235,19 +235,19 @@ jobs:
235
235
236
236
- name : Upload staged standalone archive
237
237
if : runner.os != 'Linux'
238
- uses : actions/upload-artifact@v3
238
+ uses : actions/upload-artifact@v4
239
239
with :
240
- name : staged-standalone-${{ runner.os }}
240
+ name : staged-standalone-${{ runner.os }}-${{ matrix.job.target }}
241
241
path : ddev/packaging/*
242
242
if-no-files-found : error
243
243
244
244
# There are no installers nor extra steps like signing for Linux so we
245
245
# can upload directly at this point
246
246
- name : Upload standalone archive
247
247
if : runner.os == 'Linux'
248
- uses : actions/upload-artifact@v3
248
+ uses : actions/upload-artifact@v4
249
249
with :
250
- name : standalone
250
+ name : standalone-${{ matrix.job.target }}
251
251
path : ddev/packaging/*
252
252
if-no-files-found : error
253
253
@@ -304,10 +304,11 @@ jobs:
304
304
OUTER
305
305
306
306
- name : Download staged standalone binaries
307
- uses : actions/download-artifact@v3
307
+ uses : actions/download-artifact@v4
308
308
with :
309
- name : staged-standalone-${{ runner.os }}
309
+ pattern : staged-standalone-${{ runner.os }}-*
310
310
path : ddev/archives
311
+ merge-multiple : true
311
312
312
313
- name : Extract staged standalone binaries
313
314
run : ${{ steps.script-extract.outputs.script }}
@@ -316,7 +317,7 @@ jobs:
316
317
run : ${{ steps.script-prepare.outputs.script }}
317
318
318
319
- name : Upload standalone binaries
319
- uses : actions/upload-artifact@v3
320
+ uses : actions/upload-artifact@v4
320
321
with :
321
322
name : standalone
322
323
path : ddev/archives/*
@@ -326,10 +327,11 @@ jobs:
326
327
run : rm -rf archives bin targets
327
328
328
329
- name : Download staged managed binaries
329
- uses : actions/download-artifact@v3
330
+ uses : actions/download-artifact@v4
330
331
with :
331
- name : staged-managed-${{ runner.os }}
332
+ pattern : staged-managed-${{ runner.os }}-*
332
333
path : ddev/archives
334
+ merge-multiple : true
333
335
334
336
- name : Extract staged managed binaries
335
337
run : ${{ steps.script-extract.outputs.script }}
@@ -349,10 +351,11 @@ jobs:
349
351
mv build/*/release/*/*.{exe,msi} installers
350
352
351
353
- name : Upload installers
352
- uses : actions/upload-artifact@v3
354
+ uses : actions/upload-artifact@v4
353
355
with :
354
- name : installers
356
+ name : installers-${{ runner.os }}
355
357
path : ddev/installers/*
358
+ if-no-files-found : error
356
359
357
360
macos-packaging :
358
361
name : Build macOS installer and sign/notarize artifacts
@@ -375,36 +378,14 @@ jobs:
375
378
- name : Install PyOxidizer ${{ env.PYOXIDIZER_VERSION }}
376
379
run : pip install pyoxidizer==${{ env.PYOXIDIZER_VERSION }}
377
380
378
- # TODO: Use the next official release after 0.22.0 by removing these 2 blocks, uncommenting
379
- # the following one, and changing the artifact name to reflect the next version. See:
380
- # https://github.com/indygreg/apple-platform-rs/issues/82
381
- #
382
- # We use the artifact from the latest scheduled nightly job because installing
383
- # with Cargo from scratch takes ~10 minutes
384
381
- name : Install rcodesign
385
- uses : dawidd6/action-download-artifact@v2
386
- with :
387
- repo : indygreg/apple-platform-rs
388
- workflow : rcodesign.yml
389
- event : schedule
390
- workflow_conclusion : success
391
- name : exe-rcodesign-x86_64-apple-darwin
392
- path : /usr/local/bin
393
- search_artifacts : true
394
- check_artifacts : true
395
- github_token : ${{ secrets.GITHUB_TOKEN }}
396
-
397
- - name : Finalize rcodesign
398
- run : chmod +x /usr/local/bin/rcodesign
399
-
400
- # - name: Install rcodesign
401
- # env:
402
- # ARCHIVE_NAME: "apple-codesign-0.22.0-x86_64-apple-darwin"
403
- # run: >-
404
- # curl -L
405
- # "https://github.com/indygreg/apple-platform-rs/releases/download/apple-codesign%2F0.22.0/$ARCHIVE_NAME.tar.gz"
406
- # |
407
- # tar --strip-components=1 -xzf - -C /usr/local/bin "$ARCHIVE_NAME/rcodesign"
382
+ env :
383
+ ARCHIVE_NAME : " apple-codesign-0.27.0-x86_64-apple-darwin"
384
+ run : >-
385
+ curl -L
386
+ "https://github.com/indygreg/apple-platform-rs/releases/download/apple-codesign%2F0.27.0/$ARCHIVE_NAME.tar.gz"
387
+ |
388
+ tar --strip-components=1 -xzf - -C /usr/local/bin "$ARCHIVE_NAME/rcodesign"
408
389
409
390
- name : Write credentials
410
391
env :
@@ -473,10 +454,11 @@ jobs:
473
454
OUTER
474
455
475
456
- name : Download staged standalone binaries
476
- uses : actions/download-artifact@v3
457
+ uses : actions/download-artifact@v4
477
458
with :
478
- name : staged-standalone-${{ runner.os }}
459
+ pattern : staged-standalone-${{ runner.os }}-*
479
460
path : ddev/archives
461
+ merge-multiple : true
480
462
481
463
- name : Extract staged standalone binaries
482
464
run : ${{ steps.script-extract.outputs.script }}
@@ -497,20 +479,21 @@ jobs:
497
479
done
498
480
499
481
- name : Upload standalone binaries
500
- uses : actions/upload-artifact@v3
482
+ uses : actions/upload-artifact@v4
501
483
with :
502
- name : standalone
484
+ name : standalone-${{ runner.os }}
503
485
path : ddev/archives/*
504
486
if-no-files-found : error
505
487
506
488
- name : Reset artifact directories
507
489
run : rm -rf archives bin notarize-bin
508
490
509
491
- name : Download staged managed binaries
510
- uses : actions/download-artifact@v3
492
+ uses : actions/download-artifact@v4
511
493
with :
512
- name : staged-managed-${{ runner.os }}
494
+ pattern : staged-managed-${{ runner.os }}-*
513
495
path : ddev/archives
496
+ merge-multiple : true
514
497
515
498
- name : Extract staged managed binaries
516
499
run : ${{ steps.script-extract.outputs.script }}
@@ -576,10 +559,11 @@ jobs:
576
559
"signed/${{ steps.pkg.outputs.path }}"
577
560
578
561
- name : Upload installer
579
- uses : actions/upload-artifact@v3
562
+ uses : actions/upload-artifact@v4
580
563
with :
581
- name : installers
564
+ name : installers-${{ runner.os }}
582
565
path : ddev/signed/${{ steps.pkg.outputs.path }}
566
+ if-no-files-found : error
583
567
584
568
publish :
585
569
name : Publish release
@@ -593,22 +577,25 @@ jobs:
593
577
594
578
steps :
595
579
- name : Download Python artifacts
596
- uses : actions/download-artifact@v3
580
+ uses : actions/download-artifact@v4
597
581
with :
598
582
name : python-artifacts
599
583
path : dist
600
584
601
585
- name : Download binaries
602
- uses : actions/download-artifact@v3
586
+ uses : actions/download-artifact@v4
603
587
with :
588
+ pattern : standalone-*
604
589
name : standalone
605
590
path : archives
591
+ merge-multiple : true
606
592
607
593
- name : Download installers
608
- uses : actions/download-artifact@v3
594
+ uses : actions/download-artifact@v4
609
595
with :
610
- name : installers
596
+ pattern : installers-*
611
597
path : installers
598
+ merge-multiple : true
612
599
613
600
- name : Push Python artifacts to PyPI
614
601
uses : pypa/gh-action-pypi-publish@v1.8.6
0 commit comments