From c06ddba1015f9f7451c88d96a1d11c30058522a4 Mon Sep 17 00:00:00 2001 From: Victor Nogueira Date: Mon, 9 Oct 2023 16:50:12 +0300 Subject: [PATCH] Update goreleaser-action to v5 and add permission for the workflow to attach binaries to GitHub Releases (#521) --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d39270db..01d1f6f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,8 @@ on: push: tags: - "v*" +permissions: + contents: write jobs: goreleaser: runs-on: ubuntu-latest @@ -33,7 +35,7 @@ jobs: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.PASSPHRASE }} - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v5 with: version: latest args: release --rm-dist