diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b9f0f0c6..1fc06ad9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,11 +24,11 @@ jobs: with: go-version: "1.25.x" - name: Install GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: install-only: true distribution: goreleaser - version: 1.16.1 + version: 2.13.1 - name: Build and publish the next release run: | make release-build diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 0e8c4ef8..350b6d4f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,5 @@ +version: 2 + project_name: Oasis CLI before: @@ -72,21 +74,21 @@ builds: archives: - name_template: "{{replace .ProjectName \" \" \"_\" | tolower}}_{{.Version}}_{{.Os}}_{{.Arch}}" wrap_in_directory: true - builds: + ids: - oasis-linux-amd64 - oasis-linux-arm64 - oasis-darwin-universal - oasis-windows-amd64 format_overrides: - goos: windows - format: zip + formats: [ 'zip' ] checksum: name_template: SHA256SUMS-{{.Version}}.txt algorithm: sha256 snapshot: - name_template: "{{ incpatch .Version }}-next" + version_template: "{{ incpatch .Version }}-next" changelog: sort: asc