From c29c733c52e631027c74879949e61f40066b9da4 Mon Sep 17 00:00:00 2001 From: Prudhvi Godithi Date: Tue, 18 Jun 2024 12:00:36 -0700 Subject: [PATCH] Update goreleaser to v2 (#197) Signed-off-by: Prudhvi Godithi --- .github/workflows/test.yml | 6 +++--- .golangci.yml | 2 ++ .goreleaser.yml | 6 +++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e023d2b..1ea45fa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -116,15 +116,15 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: 1.18.x + go-version: 1.22.1 - name: Import GPG key id: import_gpg - uses: crazy-max/ghaction-import-gpg@v5 + uses: crazy-max/ghaction-import-gpg@v6 with: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.GPG_PASSPHRASE }} - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2.1.1 + uses: goreleaser/goreleaser-action@v6 with: version: latest args: release --rm-dist diff --git a/.golangci.yml b/.golangci.yml index 826ff8d..39d90fd 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,3 +1,5 @@ +run: + go: "1.22.1" linters: enable: - gofmt diff --git a/.goreleaser.yml b/.goreleaser.yml index 7af6b45..c7374ed 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,8 +1,12 @@ # Visit https://goreleaser.com for documentation on how to customize this # behavior. +# Version of the configuration file +version: 2 + before: hooks: - go mod tidy + builds: - env: - CGO_ENABLED=0 @@ -45,4 +49,4 @@ signs: release: draft: false changelog: - skip: true + disable: true