Skip to content

Commit 9dca520

Browse files
authored
Merge pull request #19 from moricho/update-goreleaser-config
Update goreleaser config
2 parents 6f63ef8 + b9c184c commit 9dca520

File tree

3 files changed

+24
-11
lines changed

3 files changed

+24
-11
lines changed
File renamed without changes.
File renamed without changes.

.goreleaser.yml renamed to .goreleaser.yaml

+24-11
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,33 @@ builds:
1111
- -X main.Revision={{.ShortCommit}}
1212
env:
1313
- CGO_ENABLED=0
14+
goos:
15+
- linux
16+
- windows
17+
- darwin
18+
1419
archives:
15-
- name_template: >-
20+
- format: tar.gz
21+
name_template: >-
1622
{{ .ProjectName }}_
17-
{{- .Version }}_
18-
{{- if eq .Os "freebsd" }}FreeBSD
19-
{{- else }}{{ title .Os }}{{ end }}_
20-
{{- if eq .Arch "amd64" }}64bit
21-
{{- else if eq .Arch "386" }}32bit
22-
{{- else if eq .Arch "arm64" }}ARM64
23-
{{- else if eq .Arch "riscv64" }}RISCV
24-
{{- else }}{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ end }}
23+
{{- title .Os }}_
24+
{{- if eq .Arch "amd64" }}x86_64
25+
{{- else if eq .Arch "386" }}i386
26+
{{- else }}{{ .Arch }}{{ end }}
27+
{{- if .Arm }}v{{ .Arm }}{{ end }}
2528
format_overrides:
26-
- goos: windows
27-
format: zip
29+
- goos: windows
30+
format: zip
31+
checksum:
32+
name_template: 'checksums.txt'
33+
snapshot:
34+
name_template: "{{ incpatch .Version }}-next"
35+
changelog:
36+
sort: asc
37+
filters:
38+
exclude:
39+
- '^docs:'
40+
- '^test:'
2841
release:
2942
prerelease: auto
3043
brews:

0 commit comments

Comments
 (0)