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 ff5da1d..41660d1 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,5 @@ # See documentation at https://goreleaser.com +version: 2 before: hooks: - go mod download @@ -17,16 +18,18 @@ builds: -X main.commit={{.Commit}} -X main.date={{.CommitDate}} release: + draft: true github: owner: NETWAYS name: check_cloud_gcp 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: