diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2d8b058..2457d4d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,7 @@ jobs: - name: Run goreleaser in release mode if: success() && startsWith(github.ref, 'refs/tags/v') - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: version: latest args: release --rm-dist diff --git a/.goreleaser.yml b/.goreleaser.yml index 071a88c..9671b65 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,5 @@ # See documentation at https://goreleaser.com +version: 2 before: hooks: - go mod download @@ -22,11 +23,12 @@ release: name: check_cloud_azure archives: - format: binary - replacements: - darwin: Darwin - linux: Linux - windows: Windows - amd64: x86_64 + name_template: >- + {{ .ProjectName }}_{{ .Tag }}_ + {{- if eq .Os "linux" }}Linux{{ end }} + {{- if eq .Os "windows" }}Windows{{ end }} + {{- if eq .Os "darwin" }}Darwin{{ end }} + {{- if eq .Arch "amd64" }}_x86_64{{ end }} checksum: name_template: 'checksums.txt' snapshot: