-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
116 lines (105 loc) · 2.6 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
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
107
108
109
110
111
112
113
114
115
116
---
variables:
main: "."
binary_name: "canihazgnomeupdate"
description: "check if all your extensions support a specific gnome version "
github_url: "https://github.com/jon4hz/canihazgnomeupdate"
maintainer: "jonah <[email protected]>"
license: "MIT"
homepage: "https://jon4hz.io"
aur_package: |-
# bin
install -Dm755 "./canihazgnomeupdate" "${pkgdir}/usr/bin/canihazgnomeupdate"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/canihazgnomeupdate/LICENSE"
before:
hooks:
- go mod tidy
builds:
-
id: default
env:
- CGO_ENABLED=0
main: '{{ .Var.main }}'
binary: '{{ .Var.binary_name }}'
ldflags:
- -s
- -w
- -X main.Version={{ .Version }}
flags:
- -trimpath
goos:
- linux
goarch:
- amd64
archives:
-
id: default
name_template: "{{ .Var.binary_name }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}-{{ .Mips }}{{ end }}"
builds:
- default
files:
- LICENSE*
- README*
- CHANGELOG*
checksum:
name_template: 'checksums.txt'
nfpms:
-
file_name_template: "{{ .Var.binary_name }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}-{{ .Mips }}{{ end }}"
vendor: jon4hz
homepage: '{{ .Var.homepage }}'
maintainer: '{{ .Var.maintainer }}'
description: '{{ .Var.description }}'
license: '{{ .Var.license }}'
formats:
- apk
- deb
- rpm
aurs:
-
name: '{{ .Var.binary_name }}-bin'
homepage: '{{ .Var.homepage }}'
description: '{{ .Var.description }}'
maintainers:
- '{{ .Var.maintainer }}'
license: '{{ .Var.license }}'
private_key: '{{ .Env.AUR_KEY }}'
git_url: 'ssh://[email protected]/{{ .Var.binary_name }}-bin.git'
package: '{{ .Var.aur_package }}'
source:
enabled: true
snapshot:
name_template: "{{ incpatch .Version }}-devel"
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
groups:
- title: 'New Features'
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: Others
order: 999
furies:
- account: jon4hz
brews:
-
name: '{{ .Var.binary_name }}'
repository:
owner: jon4hz
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: jon4hz
email: [email protected]
homepage: '{{ .Var.homepage }}'
description: '{{ .Var.description }}'
install: |-
bin.install "{{ .Var.binary_name }}"