From 4217b23d15087eab4e47342328adbb4f5bdeac3d Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Mon, 10 Jun 2024 18:47:57 -0600 Subject: [PATCH] chore: Update goreleaser to v6 and the config to v2 Signed-off-by: Terry Howe --- .github/workflows/release-github.yml | 6 +++--- .goreleaser.yml | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-github.yml b/.github/workflows/release-github.yml index f48a0621b..f5c8bf46d 100644 --- a/.github/workflows/release-github.yml +++ b/.github/workflows/release-github.yml @@ -31,9 +31,9 @@ jobs: with: go-version: '1.22.3' - name: run goreleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: - version: latest - args: release --rm-dist + version: '~> v2' + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index c85806537..0d8dd1a44 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -14,6 +14,7 @@ # To release: # GITHUB_TOKEN=*** goreleaser +version: 2 builds: - main: ./cmd/oras binary: ./oras