chore: add condotional name for goreleaser snapshot

This commit is contained in:
mrekucci 2024-04-23 16:20:47 -05:00
parent d83deb470b
commit 5359b9056a

View file

@ -23,18 +23,26 @@ archives:
- format: tar.gz - format: tar.gz
name_template: >- name_template: >-
{{- .Binary }}_ {{- .Binary }}_
{{- .Version }}_ {{- if .IsSnapshot }}{{ .ShortCommit }}_
{{- else }}{{ .Version }}_
{{ end }}
{{- title .Os }}_ {{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64 {{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386 {{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }} {{- else }}{{ .Arch }}
{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides: format_overrides:
- goos: windows - goos: windows
format: zip format: zip
checksum: checksum:
name_template: mev-commit-geth_{{ .Version }}_checksums.txt name_template: >-
mev-commit-geth_
{{- if .IsSnapshot }}{{ .ShortCommit }}
{{- else }}{{ .Version }}
{{ end }}
_checksums.txt
changelog: changelog:
sort: asc sort: asc