From 367cfcdf6b9b31f25db57b14e730760195ad9322 Mon Sep 17 00:00:00 2001 From: Artem Pelenitsyn Date: Fri, 6 Sep 2024 15:48:01 -0400 Subject: [PATCH] CI: cabal-head prerelease: move to a current GitHub Action for prereleases --- .github/workflows/validate.yml | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 2d8be7f02a3..d0d557e6a4e 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -404,6 +404,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] @@ -411,32 +413,16 @@ 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 - name: Create GitHub prerelease - uses: marvinpinto/action-automatic-releases@v1.2.1 + 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-x86_64.tar.gz + binaries/cabal-* # We use this job as a summary of the workflow # It will fail if any of the previous jobs does