Skip to content

Commit 4a38a41

Browse files
toshimaruclaude
andauthored
Update.goreleaser.yml settings (#210)
* chore: Add footer to the release notes * Add `metadata. mod_timestamp` * feat: add multi-arch support * Set universal_binaries false * chore: Update changelog format and group regexes * fix: improve GoReleaser regex patterns - Remove redundant quantifiers from changelog regex patterns Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 178fbb4 commit 4a38a41

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

.goreleaser.yml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ snapshot:
99

1010
release:
1111
name_template: "v{{ .Version }}"
12+
footer: |
13+
**Full Changelog**: https://github.com/goreleaser/goreleaser/compare/{{ .PreviousTag }}...{{ .Tag }}
1214
1315
report_sizes: true
1416

17+
metadata:
18+
mod_timestamp: "{{ .CommitTimestamp }}"
19+
1520
builds:
1621
- env:
1722
- CGO_ENABLED=0
@@ -22,19 +27,30 @@ builds:
2227
goarch:
2328
- "386"
2429
- amd64
30+
- arm
2531
- arm64
32+
- riscv64
33+
goarm:
34+
- "7"
2635
ignore:
2736
- goos: windows
28-
goarch: arm64
37+
goarch: arm
38+
mod_timestamp: "{{ .CommitTimestamp }}"
39+
flags:
40+
- -trimpath
2941
ldflags:
3042
- -s -w -X github.com/toshimaru/nyan/cmd.version={{.Version}}
3143

44+
universal_binaries:
45+
- replace: false
46+
3247
checksum:
3348
name_template: "checksums.txt"
3449

3550
changelog:
3651
sort: asc
3752
use: github
53+
format: "{{ .SHA }}: {{ .Message }}{{ with .AuthorUsername }} (@{{ . }}){{ end }}"
3854
filters:
3955
exclude:
4056
- merge conflict
@@ -43,17 +59,20 @@ changelog:
4359
- Merge branch
4460
groups:
4561
- title: "New Features"
46-
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
47-
order: 1
62+
regexp: '^.*?feat(\(.+\))?!?:.+$'
63+
order: 10
64+
- title: "Security updates"
65+
regexp: '^.*?sec(\(.+\))?!?:.+$'
66+
order: 15
4867
- title: "Bug fixes"
49-
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
50-
order: 3
68+
regexp: '^.*?(fix|refactor)(\(.+\))?!?:.+$'
69+
order: 20
5170
- title: "Documentation updates"
52-
regexp: ^.*?doc(\([[:word:]]+\))??!?:.+$
53-
order: 5
71+
regexp: ^.*?docs?(\(.+\))?!?:.+$
72+
order: 40
5473
- title: Dependency updates
55-
regexp: '^.*?(feat|fix)\(deps\)!?:.+$'
56-
order: 10
74+
regexp: '^.*?(\w*\(deps?\)|deps?)!?:.+$'
75+
order: 50
5776
- title: Other work
5877
order: 99
5978

0 commit comments

Comments
 (0)