mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-12 15:03:45 +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
|
- format: tar.gz
|
||||||
name_template: >-
|
name_template: >-
|
||||||
{{- .Binary }}_
|
{{- .Binary }}_
|
||||||
{{- if .IsSnapshot }}{{ .ShortCommit }}
|
{{- with index .Env "RELEASE_VERSION" -}}
|
||||||
{{- else }}{{ .Version }}
|
{{ . }}
|
||||||
{{ end }}
|
{{- else -}}
|
||||||
|
{{- if .IsSnapshot }}{{ .ShortCommit }}
|
||||||
|
{{- else }}{{ .Version }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
{{- with index .Env "DIRTY_SUFFIX" -}}
|
{{- with index .Env "DIRTY_SUFFIX" -}}
|
||||||
{{ . }}
|
{{ . }}
|
||||||
{{- end -}}_
|
{{- end -}}_
|
||||||
|
|
@ -52,9 +56,13 @@ archives:
|
||||||
checksum:
|
checksum:
|
||||||
name_template: >-
|
name_template: >-
|
||||||
{{ .ProjectName }}_
|
{{ .ProjectName }}_
|
||||||
{{- if .IsSnapshot }}{{ .ShortCommit }}
|
{{- with index .Env "RELEASE_VERSION" -}}
|
||||||
{{- else }}{{ .Version }}
|
{{ . }}
|
||||||
{{- end }}
|
{{- else -}}
|
||||||
|
{{- if .IsSnapshot }}{{ .ShortCommit }}
|
||||||
|
{{- else }}{{ .Version }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
{{- with index .Env "DIRTY_SUFFIX" -}}
|
{{- with index .Env "DIRTY_SUFFIX" -}}
|
||||||
{{ . }}
|
{{ . }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue