diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 2ddb5459..aaf4e4d3 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -233,10 +233,10 @@ jobs: with: go-version: "1.19" - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v6 with: - version: v1.8.3 - args: release --skip-publish + version: "~> v2" + args: release --skip=publish env: GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} - name: Upload Provider to Registry diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd81584a..f433321e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,10 +35,10 @@ jobs: with: go-version: "1.19" - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v6 with: - version: latest - args: release --rm-dist + version: "~> v2" + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} diff --git a/.goreleaser.yml b/.goreleaser.yml index a9797ad4..14c29560 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,5 @@ +version: 2 + before: hooks: - go mod download @@ -26,7 +28,7 @@ archives: name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' changelog: - skip: true + disable: true checksum: name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'