Skip to content

Commit

Permalink
chore(CI): update goreleaser config to use name_template instead of…
Browse files Browse the repository at this point in the history
… `replacements`
  • Loading branch information
Dylan Bourque committed Jul 3, 2023
1 parent 60615d6 commit 8c943d1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c943d1

Please sign in to comment.