Skip to content

Commit 5940b3c

Browse files
author
licong
committed
fix ci
1 parent 1f4354c commit 5940b3c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.goreleaser.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@ builds:
1515

1616
archives:
1717
- format: binary
18-
replacements:
19-
darwin: Darwin
20-
linux: Linux
21-
windows: Windows
22-
386: i386
23-
amd64: x86_64
18+
name_template: >-
19+
{{- .ProjectName }}_
20+
{{- if eq .Os "darwin" }}Darwin
21+
{{- else if eq .Os "linux" }}Linux
22+
{{- else if eq .Os "windows" }}Windows
23+
{{- else }}{{ title .Os }}{{ end }}_
24+
{{- if eq .Arch "amd64" }}x86_64
25+
{{- else if eq .Arch "386" }}i386
26+
{{- else }}{{ .Arch }}{{ end }}
27+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
2428
2529
checksum:
2630
name_template: 'checksums.txt'

0 commit comments

Comments
 (0)