Skip to content

Commit

Permalink
ci: update the existing nightly prerelease
Browse files Browse the repository at this point in the history
Resolves #10537
  • Loading branch information
TeofilC committed Jan 17, 2025
1 parent 5ac2f87 commit 9ea29ca
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -465,24 +465,20 @@ jobs:
needs: [validate, validate-old-ghcs, build-alpine, dogfooding]

steps:
- uses: liudonghua123/delete-release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_name: 'cabal-head'

- uses: actions/download-artifact@v4
with:
pattern: cabal-*
path: binaries
merge-multiple: true

- name: Create GitHub prerelease
uses: softprops/action-gh-release@v2
- name: (Re)Create GitHub prerelease
uses: ncipollo/release-action@v1
with:
tag_name: cabal-head
tag: cabal-head
allowUpdates: true
replacesArtifacts: true
prerelease: true
files: binaries/cabal-*
artifacts: "binaries/cabal-*"

prerelease-lts:
name: Create a GitHub LTS prerelease with the binary artifacts
Expand All @@ -496,12 +492,6 @@ jobs:
needs: [validate, validate-old-ghcs, build-alpine, dogfooding]

steps:
- uses: liudonghua123/delete-release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_name: 'cabal-lts-head'

- uses: actions/download-artifact@v4
with:
pattern: cabal-*
Expand All @@ -515,12 +505,14 @@ jobs:
mv "$f" "cabal-lts-${f##cabal-}"
done
- name: Create GitHub prerelease
uses: softprops/action-gh-release@v2
- name: (Re)Create GitHub prerelease
uses: ncipollo/release-action@v1
with:
tag_name: cabal-lts-head
tag: cabal-lts-head
allowUpdates: true
replacesArtifacts: true
prerelease: true
files: binaries/cabal-*
artifacts: "binaries/cabal-*"

# We use this job as a summary of the workflow
# It will fail if any of the previous jobs does
Expand Down

0 comments on commit 9ea29ca

Please sign in to comment.