Skip to content

Commit

Permalink
Merge pull request #1838 from cpunion/assets-name
Browse files Browse the repository at this point in the history
ci: change build artifacts name
  • Loading branch information
xushiwei authored Apr 6, 2024
2 parents 244f458 + b6902f8 commit 20d9b9a
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_v{{.Version}}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{ .ProjectName }}{{.Version}}.{{ .Os }}-{{ .Arch }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
Expand Down Expand Up @@ -192,11 +188,7 @@ nfpms:
dependencies:
- "golang-bin >= 1.18.0"
file_name_template: >-
{{ .ProjectName }}_v{{.Version}}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{ .ProjectName }}{{.Version}}.{{ .Os }}-{{ .Arch }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
bindir: /usr/lib/{{ .ProjectName }}
contents:
Expand Down Expand Up @@ -286,11 +278,7 @@ snapcrafts:
confinement: classic
license: Apache-2.0
name_template: >-
{{ .ProjectName }}_v{{.Version}}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{ .ProjectName }}{{.Version}}.{{ .Os }}-{{ .Arch }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
extra_files:
# source folder
Expand Down Expand Up @@ -371,7 +359,7 @@ snapcrafts:
GOPROOT: "$SNAP"

checksum:
name_template: "{{ .ProjectName }}_v{{ .Version }}_checksums.txt"
name_template: "{{ .ProjectName }}{{ .Version }}.checksums.txt"

release:
prerelease: auto

0 comments on commit 20d9b9a

Please sign in to comment.