Skip to content

Commit

Permalink
chore: add condotional name for goreleaser snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Apr 23, 2024
1 parent d83deb4 commit 5359b90
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,26 @@ archives:
- format: tar.gz
name_template: >-
{{- .Binary }}_
{{- .Version }}_
{{- if .IsSnapshot }}{{ .ShortCommit }}_
{{- else }}{{ .Version }}_
{{ end }}
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- else }}{{ .Arch }}
{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip

checksum:
name_template: mev-commit-geth_{{ .Version }}_checksums.txt
name_template: >-
mev-commit-geth_
{{- if .IsSnapshot }}{{ .ShortCommit }}
{{- else }}{{ .Version }}
{{ end }}
_checksums.txt
changelog:
sort: asc
Expand Down

0 comments on commit 5359b90

Please sign in to comment.