From dc5b40b75e6ef505a9651cb00d45b8f29b4e98eb Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Mon, 2 Oct 2023 11:56:37 +0100 Subject: [PATCH 1/4] bump actions/checkout to v3 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b37773955..280fb4897 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: submodules: true - name: Build static website From fc81db76dc70fa106344823ed45fc08dcc8c2f3b Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Mon, 2 Oct 2023 11:57:42 +0100 Subject: [PATCH 2/4] bump actions/upload-artifact to v3 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 280fb4897..a8c844253 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: - name: Create website archive run: tar -zcvf ${{ github.event.repository.name }}.tar.gz -C _site ./ - name: Upload website archive as artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: ${{ github.event.repository.name }}.tar.gz path: ${{ github.event.repository.name }}.tar.gz From 4f6a0679c0fdc83f3775cd40866764cda7566c1d Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Mon, 2 Oct 2023 14:59:11 +0100 Subject: [PATCH 3/4] replace archived action --- .github/workflows/build.yml | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a8c844253..518c67864 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,29 +36,13 @@ jobs: run: sha256sum --tag ${{ github.event.repository.name }}.tar.gz > SHASUMS - name: Create release id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v1 with: + token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + name: Release ${{ github.ref }} draft: false prerelease: false - - name: Upload website as release asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./${{ github.event.repository.name }}.tar.gz - asset_name: ${{ github.event.repository.name }}.tar.gz - asset_content_type: application/gzip - - name: Upload checksum as release asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./SHASUMS - asset_name: SHASUMS - asset_content_type: text/plain + files: + - ${{ github.event.repository.name }}.tar.gz + - SHASUMS From e1f114f697dc5b8b03f4ee5a8ec30232e329c6e3 Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Mon, 2 Oct 2023 15:01:20 +0100 Subject: [PATCH 4/4] add missing pipe --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 518c67864..967ad5f21 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,6 +43,6 @@ jobs: name: Release ${{ github.ref }} draft: false prerelease: false - files: + files: | - ${{ github.event.repository.name }}.tar.gz - SHASUMS