-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
106 lines (97 loc) · 2.46 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
before:
hooks:
- go mod tidy
project_name: hosts
builds:
- binary: hosts
id: hosts
goos:
- linux
- windows
goarch:
- amd64
env:
- CGO_ENABLED=0
ldflags:
- -X github.com/martinnirtl/hosts-cli/cmd.version={{ .Version }}
- -X github.com/martinnirtl/hosts-cli/cmd.commit={{ .Commit }}
- -X github.com/martinnirtl/hosts-cli/cmd.date={{ .Date }}
- binary: hosts
id: hosts-macos
goos:
- darwin
goarch:
- amd64
env:
- CGO_ENABLED=0
ldflags:
- -X github.com/martinnirtl/hosts-cli/cmd.version={{ .Version }}
- -X github.com/martinnirtl/hosts-cli/cmd.commit={{ .Commit }}
- -X github.com/martinnirtl/hosts-cli/cmd.date={{ .Date }}
# hooks:
# post:
# - gon gon.hcl
universal_binaries:
- ids:
- hosts-macos
name_template: hosts
replace: true
# hooks:
# post:
# - gon gon.hcl
archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- if eq .Os "darwin" }}macos
{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
sboms:
- artifacts: archive
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
use: github
abbrev: 0
groups: # Regex use RE2 syntax as defined here: https://github.com/google/re2/wiki/Syntax.
- title: 'Features'
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 100
- title: 'Bug fixes'
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 200
- title: 'Documentation'
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
order: 300
- title: 'Dependency updates'
regexp: '^.*?(feat|fix|chore)\(deps?.+\)!?:.+$'
order: 400
- title: 'Other work'
order: 999
filters:
exclude:
- '^test:'
- '^.*?Bump(\([[:word:]]+\))?.+$'
release:
prerelease: auto
# # header: |
# # Welcome to this new release!
# footer: |
# That's it for {{ .Tag }}!
brews:
- name: hosts
tap:
owner: martinnirtl
name: homebrew-tap
branch: main
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
homepage: "https://github.com/martinnirtl/hosts-cli"
description: "Manage host entries - a simple tool for a simple, but annoying task!"