Skip to content

Commit 30002d7

Browse files
committed
Add goreleaser.yml
1 parent 86cf13a commit 30002d7

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

goreleaser.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
version: 2
2+
3+
before:
4+
hooks:
5+
- go mod tidy
6+
7+
builds:
8+
- id: mdblist-cli
9+
env:
10+
- CGO_ENABLED=0
11+
flags:
12+
- -pgo=cpu.pprof
13+
goos:
14+
- linux
15+
- windows
16+
- darwin
17+
- freebsd
18+
goarch:
19+
- amd64
20+
- arm
21+
- arm64
22+
goarm:
23+
- 6
24+
ignore:
25+
- goos: windows
26+
goarch: arm
27+
- goos: windows
28+
goarch: arm64
29+
- goos: darwin
30+
goarch: arm
31+
- goos: freebsd
32+
goarch: arm
33+
- goos: freebsd
34+
goarch: arm64
35+
main: ./main.go
36+
binary: mdblist-cli
37+
38+
archives:
39+
- id: mdblist-cli
40+
builds:
41+
- mdblist-cli
42+
format_overrides:
43+
- goos: windows
44+
format: zip
45+
name_template: >-
46+
{{ .ProjectName }}_
47+
{{- .Version }}_
48+
{{- .Os }}_
49+
{{- if eq .Arch "amd64" }}x86_64
50+
{{- else }}{{ .Arch }}{{ end }}
51+
52+
release:
53+
prerelease: auto
54+
footer: |
55+
**Full Changelog**: https://github.com/mdblist-cli/mdblist-cli/compare/{{ .PreviousTag }}...{{ .Tag }}
56+
57+
checksum:
58+
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
59+
60+
changelog:
61+
sort: asc
62+
use: github
63+
filters:
64+
exclude:
65+
- Merge pull request
66+
- Merge remote-tracking branch
67+
- Merge branch
68+
groups:
69+
- title: "New Features"
70+
regexp: "^.*feat[(\\w)]*:+.*$"
71+
order: 0
72+
- title: "Bug fixes"
73+
regexp: "^.*fix[(\\w)]*:+.*$"
74+
order: 10
75+
- title: Other work
76+
order: 999

0 commit comments

Comments
 (0)