Skip to content

Commit

Permalink
Update goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
moricho committed Mar 13, 2023
1 parent 6f63ef8 commit b9c184c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
35 changes: 24 additions & 11 deletions .goreleaser.yml → .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,33 @@ builds:
- -X main.Revision={{.ShortCommit}}
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin

archives:
- name_template: >-
- format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "freebsd" }}FreeBSD
{{- else }}{{ title .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}64bit
{{- else if eq .Arch "386" }}32bit
{{- else if eq .Arch "arm64" }}ARM64
{{- else if eq .Arch "riscv64" }}RISCV
{{- else }}{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ end }}
{{- 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
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
prerelease: auto
brews:
Expand Down

0 comments on commit b9c184c

Please sign in to comment.