diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 10c001a..582d021 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -46,15 +46,7 @@ builds: - darwin - windows archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 - # replacements is deprecated and needs to be replaced but using name_template resulted in duplicate - # archive names :( - #name_template: '{{ .ProjectName }}_{{- title .Os }}_{{- if eq .Arch "amd64" }}x86_64{{- else if eq .Arch "386" }}i386{{- else }}{{ .Arch }}{{ end }}' + - name_template: '{{.ProjectName}}_{{.Version}}_{{title .Os}}_{{if eq .Arch "amd64"}}x86_64{{else if eq .Arch "386"}}i386{{else}}{{.Arch}}{{end}}{{if .Arm}}v{{.Arm}}{{end}}' format_overrides: - goos: windows format: zip