@@ -451,6 +451,8 @@ jobs:
451
451
name : Create a GitHub prerelease with the binary artifacts
452
452
runs-on : ubuntu-latest
453
453
if : github.ref == 'refs/heads/master'
454
+ permissions :
455
+ contents : write
454
456
455
457
# IMPORTANT! Any job added to the workflow should be added here too
456
458
needs : [validate, validate-old-ghcs, build-alpine, dogfooding]
@@ -459,32 +461,15 @@ jobs:
459
461
# for now this is hardcoded. is there a better way?
460
462
- uses : actions/download-artifact@v4
461
463
with :
462
- name : cabal-Windows-x86_64
463
-
464
- - uses : actions/download-artifact@v4
465
- with :
466
- name : cabal-Linux-x86_64
467
-
468
- - uses : actions/download-artifact@v4
469
- with :
470
- name : cabal-Linux-static-x86_64
471
-
472
- - uses : actions/download-artifact@v4
473
- with :
474
- name : cabal-macOS-aarch64
464
+ pattern : cabal-*
465
+ path : binaries
475
466
476
467
- name : Create GitHub prerelease
477
- uses :
marvinpinto /action-[email protected]
468
+ uses : softprops /action-gh-release@v2
478
469
with :
479
- repo_token : ${{ secrets.GITHUB_TOKEN }}
480
- automatic_release_tag : cabal-head
470
+ tag_name : cabal-head
481
471
prerelease : true
482
- title : cabal-head
483
- files : |
484
- cabal-head-Windows-x86_64.tar.gz
485
- cabal-head-Linux-x86_64.tar.gz
486
- cabal-head-Linux-static-x86_64.tar.gz
487
- cabal-head-macOS-aarch64.tar.gz
472
+ files : binaries/cabal-*
488
473
489
474
prerelease-lts :
490
475
name : Create a GitHub LTS prerelease with the binary artifacts
@@ -498,39 +483,22 @@ jobs:
498
483
steps :
499
484
- uses : actions/download-artifact@v4
500
485
with :
501
- name : cabal-Windows-x86_64
502
-
503
- - uses : actions/download-artifact@v4
504
- with :
505
- name : cabal-Linux-x86_64
506
-
507
- - uses : actions/download-artifact@v4
508
- with :
509
- name : cabal-Linux-static-x86_64
510
-
511
- - uses : actions/download-artifact@v4
512
- with :
513
- name : cabal-macOS-x86_64
486
+ pattern : cabal-*
487
+ path : binaries
514
488
515
489
- run : |
516
490
# bash-ism, but we forced bash above
517
491
mv cabal-{,lts-}head-Windows-x86_64.tar.gz
518
492
mv cabal-{,lts-}head-Linux-x86_64.tar.gz
519
493
mv cabal-{,lts-}head-Linux-static-x86_64.tar.gz
520
- mv cabal-{,lts-}head-macOS-x86_64 .tar.gz
494
+ mv cabal-{,lts-}head-macOS-aarch64 .tar.gz
521
495
522
496
- name : Create GitHub prerelease
523
- uses :
marvinpinto /action-[email protected]
497
+ uses : softprops /action-gh-release@v2
524
498
with :
525
- repo_token : ${{ secrets.GITHUB_TOKEN }}
526
- automatic_release_tag : cabal-lts-head
499
+ tag_name : cabal-lts-head
527
500
prerelease : true
528
- title : cabal-lts-head
529
- files : |
530
- cabal-lts-head-Windows-x86_64.tar.gz
531
- cabal-lts-head-Linux-x86_64.tar.gz
532
- cabal-lts-head-Linux-static-x86_64.tar.gz
533
- cabal-lts-head-macOS-x86_64.tar.gz
501
+ files : binaries/cabal-*
534
502
535
503
# We use this job as a summary of the workflow
536
504
# It will fail if any of the previous jobs does
0 commit comments