From 275596db5624bfef84dc682e65573c74dc28a0ac Mon Sep 17 00:00:00 2001 From: Manuel Mendez Date: Fri, 14 Jun 2024 13:14:41 -0400 Subject: [PATCH 1/2] Handle update to goreleaser v2 Since we were stating `version: latest` in the github-actions yaml this update snuck up on us. I decided to go ahead with the update instead of pinning to v1 since at some point we'll have to update anyway, might as well do it now. Use --clean not --rm-dist in goreleaser release step, removed in v1.15.0, see https://goreleaser.com/deprecations/#-rm-dist. Add `version: 2` to the .goreleaser.yml file since `goreleaser check` complained about it. --- .github/workflows/goreleaser.yml | 2 +- .goreleaser.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 4a3b5b7..578333b 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -40,7 +40,7 @@ jobs: uses: goreleaser/goreleaser-action@v6.0.0 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COSIGN_EXPERIMENTAL: 1 diff --git a/.goreleaser.yml b/.goreleaser.yml index 02fabc8..723fab1 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,5 @@ project_name: vogelkop +version: 2 before: hooks: - go mod download From 48c15bbc147e69d4e9e30567fb0db22a4f6de9f3 Mon Sep 17 00:00:00 2001 From: Manuel Mendez Date: Fri, 14 Jun 2024 13:22:24 -0400 Subject: [PATCH 2/2] Do no specify latest version in goreleaser-action The default is now '~> v2'[1] which should be good. 1: https://github.com/goreleaser/goreleaser-action/blob/v6.0.0/README.md#inputs --- .github/workflows/goreleaser.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 578333b..a3fc745 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -39,7 +39,6 @@ jobs: - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6.0.0 with: - version: latest args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}