-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.goreleaser.yml
49 lines (49 loc) · 1.08 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
version: 2
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/
# Custom ldflags.
# Default: '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser'
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
- -X main.date={{.CommitDate}}
- -X main.builtBy=goreleaser
mod_timestamp: '{{ .CommitTimestamp }}'
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- arm64
- amd64
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-dev"
release:
mode: replace
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^Merge pull request'
groups:
- title: New features
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: Bug fixes
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: Dependency upgrades
regexp: '.*?chore\(deps\):.*$'
order: 2
- title: Other changes
order: 999