Skip to content

Commit 2cda63a

Browse files
authored
Merge pull request #749 from huanghaoyuanhhy/fix-release
.goreleaser: add version
2 parents 61ecf4f + cd48866 commit 2cda63a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.goreleaser.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ archives:
2525
# this name template makes the OS and Arch compatible with the results of uname.
2626
name_template: >-
2727
{{ .ProjectName }}_
28+
{{- .Version }}_
2829
{{- title .Os }}_
2930
{{- if eq .Arch "amd64" }}x86_64
3031
{{- else if eq .Arch "386" }}i386
3132
{{- else }}{{ .Arch }}{{ end }}
3233
{{- if .Arm }}v{{ .Arm }}{{ end }}
3334
checksum:
34-
name_template: "checksums.txt"
35+
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
3536
snapshot:
3637
version_template: "{{ incpatch .Version }}-next"
3738

0 commit comments

Comments
 (0)