Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: properly update metadata on nigthly releases #10756

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 12 additions & 18 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -465,24 +465,21 @@ 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: andelf/nightly-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: cabal-head
name: cabal-head
prerelease: true
files: binaries/cabal-*
files: "binaries/cabal-*"

prerelease-lts:
name: Create a GitHub LTS prerelease with the binary artifacts
Expand All @@ -496,12 +493,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 +506,15 @@ jobs:
mv "$f" "cabal-lts-${f##cabal-}"
done

- name: Create GitHub prerelease
uses: softprops/action-gh-release@v2
- name: (Re)Create GitHub prerelease
uses: andelf/nightly-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: cabal-lts-head
name: cabal-lts-head
prerelease: true
files: binaries/cabal-*
files: "binaries/cabal-*"

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