diff --git a/.goreleaser.yml b/.goreleaser.yml index d75418e..3028704 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,6 @@ # This is an example .goreleaser.yml file with some sane defaults. # Make sure to check the documentation at http://goreleaser.com +version: 2 builds: - id: "fakes3server-build" dir: vendor/github.com/johannesboyne/gofakes3/cmd/gofakes3 @@ -17,13 +18,14 @@ archives: - id: fakes3server-archive builds: - fakes3server-build - name_template: "fakes3server_{{ .Version }}_{{ .Os }}_{{ .Arch }}" - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + name_template: >- + fakes3server_{{ .Version }}_ + {{- if eq .Os "darwin" }}Darwin + {{- else if eq .Os "linux" }}Linux + {{- else }}{{ .Os }}{{ end }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} format_overrides: - goos: windows format: zip