Skip to content

Commit 367cfcd

Browse files
committed
CI: cabal-head prerelease: move to a current GitHub Action for prereleases
1 parent 3a6f73e commit 367cfcd

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

.github/workflows/validate.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -404,39 +404,25 @@ jobs:
404404
name: Create a GitHub prerelease with the binary artifacts
405405
runs-on: ubuntu-latest
406406
if: github.ref == 'refs/heads/master'
407+
permissions:
408+
contents: write
407409

408410
# IMPORTANT! Any job added to the workflow should be added here too
409411
needs: [validate, validate-old-ghcs, build-alpine, dogfooding]
410412

411413
steps:
412414
- uses: actions/download-artifact@v4
413415
with:
414-
name: cabal-Windows-x86_64
415-
416-
- uses: actions/download-artifact@v4
417-
with:
418-
name: cabal-Linux-x86_64
419-
420-
- uses: actions/download-artifact@v4
421-
with:
422-
name: cabal-Linux-static-x86_64
423-
424-
- uses: actions/download-artifact@v4
425-
with:
426-
name: cabal-macOS-x86_64
416+
pattern: cabal-*
417+
path: binaries
427418

428419
- name: Create GitHub prerelease
429-
uses: marvinpinto/action-[email protected]
420+
uses: softprops/action-gh-release@v2
430421
with:
431-
repo_token: ${{ secrets.GITHUB_TOKEN }}
432-
automatic_release_tag: cabal-head
422+
tag_name: cabal-head
433423
prerelease: true
434-
title: cabal-head
435424
files: |
436-
cabal-head-Windows-x86_64.tar.gz
437-
cabal-head-Linux-x86_64.tar.gz
438-
cabal-head-Linux-static-x86_64.tar.gz
439-
cabal-head-macOS-x86_64.tar.gz
425+
binaries/cabal-*
440426
441427
# We use this job as a summary of the workflow
442428
# It will fail if any of the previous jobs does

0 commit comments

Comments
 (0)