From 5cadcdfac44b73212a4c42e43be4bc631fee0a3c Mon Sep 17 00:00:00 2001 From: Petro Protsakh Date: Fri, 21 Jun 2024 14:32:04 +0300 Subject: [PATCH 1/2] SCALRCORE-31551 Fix GoReleaser v2 deprecations --- .github/workflows/default.yml | 6 +++--- .github/workflows/release.yml | 6 +++--- .goreleaser.yml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) 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..c4989c69 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -26,7 +26,7 @@ archives: name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' changelog: - skip: true + disable: true checksum: name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' From 98d11150a9c25c33ed5403fff887a74b24db5f6b Mon Sep 17 00:00:00 2001 From: Petro Protsakh Date: Fri, 21 Jun 2024 15:19:51 +0300 Subject: [PATCH 2/2] SCALRCORE-31551 Fix GoReleaser v2 deprecations --- .goreleaser.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index c4989c69..14c29560 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,5 @@ +version: 2 + before: hooks: - go mod download