-
Notifications
You must be signed in to change notification settings - Fork 56
/
.goreleaser.yaml
193 lines (164 loc) · 4.21 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- "386"
- amd64
- arm
- arm64
flags:
- -trimpath
ldflags:
- -X 'github.com/metafates/mangal/constant.BuiltAt={{ .Date }}'
- -X 'github.com/metafates/mangal/constant.BuiltBy={{ .Env.USER }}'
- -X 'github.com/metafates/mangal/constant.Revision={{ .ShortCommit }}'
- -s
- -w
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
android: Android
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- completions/*
- README.md
- LICENSE
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
use: github
groups:
- title: Dependency updates
regexp: "^.*feat\\(deps\\)*:+.*$"
order: 300
- title: 'New Features'
regexp: "^.*feat[(\\w)]*:+.*$"
order: 100
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 200
- title: 'Documentation updates'
regexp: "^.*docs[(\\w)]*:+.*$"
order: 400
- title: Other work
order: 9999
filters:
exclude:
- '^test'
- '^chore'
- '^refactor'
- '^build'
- 'merge conflict'
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
dockers:
- goos: linux
goarch: amd64
image_templates:
- "metafates/mangal:latest"
skip_push: false
use: docker
brews:
- name: mangal
tap:
owner: metafates
name: homebrew-mangal
branch: main
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: goreleaserbot
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/metafates/mangal"
description: "The ultimate CLI manga downloader!"
license: "MIT"
skip_upload: false
test: |
system "#{bin}/mangal -v"
install: |-
bin.install "mangal"
bash_completion.install "completions/mangal.bash" => "mangal"
zsh_completion.install "completions/mangal.zsh" => "_mangal"
fish_completion.install "completions/mangal.fish"
scoop:
bucket:
owner: metafates
name: scoop-metafates
branch: main
token: "{{ .Env.SCOOP_TAP_GITHUB_TOKEN }}"
folder: bucket
commit_author:
name: goreleaserbot
email: [email protected]
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/metafates/mangal"
description: "The ultimate CLI manga downloader!"
license: MIT
skip_upload: false
release:
github:
owner: metafates
name: mangal
name_template: "{{.ProjectName}} v{{.Version}}"
header: |
To install:
```sh
curl -sSL mangal.metafates.one/install | sh
```
## What's new?
footer: |
**Full Changelog**: https://github.com/metafates/mangal/compare/{{ .PreviousTag }}...{{ .Tag }}
---
Bugs? Suggestions? [Open an issue](https://github.com/metafates/mangal/issues/new/choose)
nfpms:
- file_name_template: "{{ .ConventionalFileName }}"
homepage: https://github.com/metafates/mangal
maintainer: metafates <[email protected]>
description: |-
The most advanced cli manga downloader in the entire universe!
license: MIT
formats:
- deb
- rpm
bindir: /usr/local/bin
section: utils
deb:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package
contents:
- src: ./completions/mangal.bash
dst: /usr/share/bash-completion/completions/mangal
file_info:
mode: 0644
- src: ./completions/mangal.fish
dst: /usr/share/fish/completions/mangal.fish
file_info:
mode: 0644
- src: ./completions/mangal.zsh
dst: /usr/share/zsh/vendor-completions/_mangal
file_info:
mode: 0644
- src: ./LICENSE
dst: /usr/share/doc/mangal/copyright
file_info:
mode: 0644