From 869e32fedfc69a091b54f8fd0cdb7aee4d08d9a9 Mon Sep 17 00:00:00 2001 From: Grzegorz Bernady Date: Thu, 24 Apr 2025 09:30:44 +0200 Subject: [PATCH] Pin goreleaser to v2 and update its config file --- .github/workflows/release.yml | 2 +- .goreleaser.yaml | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1798e12..2840d28 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - version: latest + version: '~> v2' args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 0b5a356..c9159c2 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,5 @@ +version: 2 + before: hooks: - go mod download @@ -19,14 +21,14 @@ builds: - linux_arm64 archives: - - format: binary + - formats: [ 'binary' ] name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}" checksum: name_template: 'checksums.txt' snapshot: - name_template: "{{ incpatch .Version }}-snapshot" + version_template: "{{ incpatch .Version }}-snapshot" changelog: sort: asc @@ -38,6 +40,7 @@ release: github: owner: g-core name: gcore-cli + replace_existing_artifacts: true brews: - name: gcore-cli @@ -45,7 +48,7 @@ brews: name: goreleaserbot email: goreleaserbot@gcore.com commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" - folder: Formula + directory: Formula homepage: "https://github.com/G-Core/gcore-cli" description: "The official Gcore CLI" license: "Apache-2.0"