-
Notifications
You must be signed in to change notification settings - Fork 5
/
.goreleaser.yaml
73 lines (71 loc) · 1.53 KB
/
.goreleaser.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
ldflags:
- -s -w -X {{ .ModulePath }}/cmd.date={{ .CommitDate }}
- -X {{ .ModulePath }}/cmd.commit={{ .Commit }}
- -X {{ .ModulePath }}/cmd.version={{ .Version }}
- -X {{ .ModulePath }}/cmd.builtBy=goreleaser
- -X {{ .ModulePath }}/cmd.treestate={{ .IsGitDirty }}
archives:
- format: binary
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}.dev"
changelog:
sort: asc
filters:
exclude:
- '^test:'
- "^chore"
- "merge conflict"
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
groups:
- title: "Features"
regexp: "^.*?feat:.*$"
order: 0
- title: "Bug fixes"
regexp: "^.*?fix:.*$"
order: 1
- title: "Chores"
regexp: "^.*?chore:.*$"
order: 2
- title: "Docs"
regexp: "^.*?docs:.*$"
order: 3
- title: "CI"
regexp: "^.*?ci:.*$"
order: 4
- title: "Build"
regexp: "^.*?build:.*$"
order: 5
- title: Others
order: 999
brews:
- repository:
owner: retr0h
name: homebrew-tap
directory: Formula
goarm: "7"
homepage: https://github.com/retr0h/gilt
description: A GIT layering tool
license: MIT
test: |
system "#{bin}/goreleaser -v"
dependencies:
- name: go
type: optional
- name: git
universal_binaries:
- replace: true