From 0b463dba2a222c12ea4eba97c1069e181fafacda Mon Sep 17 00:00:00 2001 From: ze0s Date: Tue, 10 Dec 2024 02:06:14 +0100 Subject: [PATCH] build: update goreleaser actions --- .github/workflows/build.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eca4739..c9806b5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,19 +73,21 @@ jobs: cache: true - name: Run GoReleaser build - uses: goreleaser/goreleaser-action@v5 - if: ${{ github.event_name == 'pull_request' }} + if: github.event_name == 'pull_request' + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - version: latest - args: release --clean --skip=validate --skip=publish --parallelism 5 --snapshot + version: "~> v2" + args: release --clean --skip=validate,publish --parallelism 5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run GoReleaser build and publish tags - uses: goreleaser/goreleaser-action@v5 if: startsWith(github.ref, 'refs/tags/') + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - version: latest + version: "~> v2" args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}