-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: cabal-head prerelease: move to a current GitHub Action for prerel…
…eases
- Loading branch information
1 parent
96df6f8
commit db234dd
Showing
1 changed file
with
13 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -448,6 +448,8 @@ jobs: | |
name: Create a GitHub prerelease with the binary artifacts | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/master' | ||
permissions: | ||
contents: write | ||
|
||
# IMPORTANT! Any job added to the workflow should be added here too | ||
needs: [validate, validate-old-ghcs, build-alpine, dogfooding] | ||
|
@@ -456,32 +458,15 @@ jobs: | |
# for now this is hardcoded. is there a better way? | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: cabal-Windows-x86_64 | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: cabal-Linux-x86_64 | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: cabal-Linux-static-x86_64 | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: cabal-macOS-aarch64 | ||
pattern: cabal-* | ||
path: binaries | ||
|
||
- name: Create GitHub prerelease | ||
uses: marvinpinto/action-[email protected] | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
automatic_release_tag: cabal-head | ||
tag_name: cabal-head | ||
prerelease: true | ||
title: cabal-head | ||
files: | | ||
cabal-head-Windows-x86_64.tar.gz | ||
cabal-head-Linux-x86_64.tar.gz | ||
cabal-head-Linux-static-x86_64.tar.gz | ||
cabal-head-macOS-aarch64.tar.gz | ||
files: binaries/cabal-* | ||
|
||
prerelease-lts: | ||
name: Create a GitHub LTS prerelease with the binary artifacts | ||
|
@@ -495,39 +480,22 @@ jobs: | |
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: cabal-Windows-x86_64 | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: cabal-Linux-x86_64 | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: cabal-Linux-static-x86_64 | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: cabal-macOS-x86_64 | ||
pattern: cabal-* | ||
path: binaries | ||
|
||
- run: | | ||
# bash-ism, but we forced bash above | ||
mv cabal-{,lts-}head-Windows-x86_64.tar.gz | ||
mv cabal-{,lts-}head-Linux-x86_64.tar.gz | ||
mv cabal-{,lts-}head-Linux-static-x86_64.tar.gz | ||
mv cabal-{,lts-}head-macOS-x86_64.tar.gz | ||
mv cabal-{,lts-}head-macOS-aarch64.tar.gz | ||
- name: Create GitHub prerelease | ||
uses: marvinpinto/action-[email protected] | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
automatic_release_tag: cabal-lts-head | ||
tag_name: cabal-lts-head | ||
prerelease: true | ||
title: cabal-lts-head | ||
files: | | ||
cabal-lts-head-Windows-x86_64.tar.gz | ||
cabal-lts-head-Linux-x86_64.tar.gz | ||
cabal-lts-head-Linux-static-x86_64.tar.gz | ||
cabal-lts-head-macOS-x86_64.tar.gz | ||
files: binaries/cabal-* | ||
|
||
# We use this job as a summary of the workflow | ||
# It will fail if any of the previous jobs does | ||
|