Skip to content

Commit

Permalink
build(goreleaser): update .goreleaser.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyXiang committed Aug 23, 2023
1 parent 5d01acb commit 1d1a696
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,17 @@ builds:

# Archive
archives:
-
name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format: "binary"
- format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip

# Release
release:
Expand All @@ -41,6 +49,7 @@ snapshot:

# Changelog
changelog:
sort: asc
filters:
exclude:
- "^docs"
Expand Down

0 comments on commit 1d1a696

Please # to comment.