From 9ea29ca3dc4c6fb1f1cef7ecc467031d2c53831b Mon Sep 17 00:00:00 2001 From: Teo Camarasu Date: Fri, 17 Jan 2025 17:51:17 +0000 Subject: [PATCH] ci: update the existing nightly prerelease Resolves #10537 --- .github/workflows/validate.yml | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index daa0811440d..4ad2f2da1a3 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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 @@ -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-* @@ -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