@@ -451,7 +451,11 @@ jobs:
451
451
needs : [validate, validate-old-ghcs, build-alpine, dogfooding]
452
452
453
453
steps :
454
- # for now this is hardcoded. is there a better way?
454
+ - uses : liudonghua123/delete-release-action@v1
455
+ with :
456
+ release_name : ' cabal-head'
457
+ token : ${{ github.token }}
458
+
455
459
- uses : actions/download-artifact@v4
456
460
with :
457
461
pattern : cabal-*
@@ -468,15 +472,18 @@ jobs:
468
472
name : Create a GitHub LTS prerelease with the binary artifacts
469
473
runs-on : ubuntu-latest
470
474
# The LTS branch is hardcoded for now, update it on a new LTS!
471
- if : " always() && contains( github.ref, ' 3.12') "
475
+ if : github.ref == 'refs/heads/ 3.12'
472
476
permissions :
473
477
contents : write
474
478
475
479
# IMPORTANT! Any job added to the workflow should be added here too
476
480
needs : [validate, validate-old-ghcs, build-alpine, dogfooding]
477
481
478
482
steps :
479
- - run : echo "|${{ github.ref }}|${{ github.base_ref }}|"
483
+ - uses : liudonghua123/delete-release-action@v1
484
+ with :
485
+ release_name : ' cabal-lts-head'
486
+ token : ${{ github.token }}
480
487
481
488
- uses : actions/download-artifact@v4
482
489
with :
@@ -492,12 +499,12 @@ jobs:
492
499
mv cabal-{,lts-}Linux-static-x86_64
493
500
mv cabal-{,lts-}macOS-x86_64
494
501
495
- # - name: Create GitHub prerelease
496
- # uses: softprops/action-gh-release@v2
497
- # with:
498
- # tag_name: cabal-lts-head
499
- # prerelease: true
500
- # files: binaries/cabal-*
502
+ - name : Create GitHub prerelease
503
+ uses : softprops/action-gh-release@v2
504
+ with :
505
+ tag_name : cabal-lts-head
506
+ prerelease : true
507
+ files : binaries/cabal-*
501
508
502
509
# We use this job as a summary of the workflow
503
510
# It will fail if any of the previous jobs does
0 commit comments