From 7109b0ce8f3e2a459f9a80dcfdd943e3e6186c2f Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Tue, 21 May 2024 21:44:29 +0100 Subject: [PATCH] ci: Bump actions/upload-artifact to v4 v3 is deprecated: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/ --- .github/workflows/haskell-ci-hackage.patch | 15 ++++++++++----- .github/workflows/haskell-ci.yml | 13 +++++++++---- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/workflows/haskell-ci-hackage.patch b/.github/workflows/haskell-ci-hackage.patch index 898f5c34f..69c64a12c 100644 --- a/.github/workflows/haskell-ci-hackage.patch +++ b/.github/workflows/haskell-ci-hackage.patch @@ -56,19 +56,24 @@ set in GitHub repository secrets. - name: unconstrained build run: | rm -f cabal.project.local -@@ -267,3 +279,75 @@ +@@ -267,3 +279,80 @@ with: key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }} path: ~/.cabal/store -+ - name: upload artifacts (sdist) ++ # must be separate artifacts because GitHub Actions are still broken: ++ # https://github.com/actions/upload-artifact/issues/441 ++ # https://github.com/actions/upload-artifact/issues/457 ++ - name: upload artifact (sdist) + if: matrix.upload -+ uses: actions/upload-artifact@v3 ++ uses: actions/upload-artifact@v4 + with: ++ name: sdist + path: ${{ github.workspace }}/sdist/*.tar.gz -+ - name: upload artifacts (haddock) ++ - name: upload artifact (haddock) + if: matrix.upload -+ uses: actions/upload-artifact@v3 ++ uses: actions/upload-artifact@v4 + with: ++ name: haddock + path: ${{ github.workspace }}/haddock/*-docs.tar.gz + - name: hackage upload (candidate) + if: matrix.upload && github.event_name == 'workflow_dispatch' && github.event.inputs.version != '' diff --git a/.github/workflows/haskell-ci.yml b/.github/workflows/haskell-ci.yml index e13f3e623..5e3fd2cde 100644 --- a/.github/workflows/haskell-ci.yml +++ b/.github/workflows/haskell-ci.yml @@ -253,15 +253,20 @@ jobs: with: key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }} path: ~/.cabal/store - - name: upload artifacts (sdist) + # must be separate artifacts because GitHub Actions are still broken: + # https://github.com/actions/upload-artifact/issues/441 + # https://github.com/actions/upload-artifact/issues/457 + - name: upload artifact (sdist) if: matrix.upload - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: + name: sdist path: ${{ github.workspace }}/sdist/*.tar.gz - - name: upload artifacts (haddock) + - name: upload artifact (haddock) if: matrix.upload - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: + name: haddock path: ${{ github.workspace }}/haddock/*-docs.tar.gz - name: hackage upload (candidate) if: matrix.upload && github.event_name == 'workflow_dispatch' && github.event.inputs.version != ''