mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-30 00:23:46 +00:00
feat: introduce release version env variable for goreleaser
This commit is contained in:
parent
06340fcfff
commit
6e15b3b6a3
1 changed files with 14 additions and 6 deletions
|
|
@ -26,9 +26,13 @@ archives:
|
|||
- format: tar.gz
|
||||
name_template: >-
|
||||
{{- .Binary }}_
|
||||
{{- if .IsSnapshot }}{{ .ShortCommit }}
|
||||
{{- else }}{{ .Version }}
|
||||
{{ end }}
|
||||
{{- with index .Env "RELEASE_VERSION" -}}
|
||||
{{ . }}
|
||||
{{- else -}}
|
||||
{{- if .IsSnapshot }}{{ .ShortCommit }}
|
||||
{{- else }}{{ .Version }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- with index .Env "DIRTY_SUFFIX" -}}
|
||||
{{ . }}
|
||||
{{- end -}}_
|
||||
|
|
@ -52,9 +56,13 @@ archives:
|
|||
checksum:
|
||||
name_template: >-
|
||||
{{ .ProjectName }}_
|
||||
{{- if .IsSnapshot }}{{ .ShortCommit }}
|
||||
{{- else }}{{ .Version }}
|
||||
{{- end }}
|
||||
{{- with index .Env "RELEASE_VERSION" -}}
|
||||
{{ . }}
|
||||
{{- else -}}
|
||||
{{- if .IsSnapshot }}{{ .ShortCommit }}
|
||||
{{- else }}{{ .Version }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- with index .Env "DIRTY_SUFFIX" -}}
|
||||
{{ . }}
|
||||
{{- end -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue