-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
238 lines (216 loc) · 6.41 KB
/
.goreleaser.yml
File metadata and controls
238 lines (216 loc) · 6.41 KB
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
project_name: gh-notif
version: 2
before:
hooks:
- go mod tidy
# Skip go generate and tests for faster builds
builds:
- id: gh-notif
main: .
binary: gh-notif
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
goarm:
- "7"
ignore:
- goos: windows
goarch: arm64
flags:
- -trimpath
ldflags:
- -s -w
- -X main.versionString={{.Version}}
- -X main.commitString={{.Commit}}
- -X main.dateString={{.Date}}
- -X main.builtByString=goreleaser
no_unique_dist_dir: false
skip: false
archives:
- id: default
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
files:
- README.md
- LICENSE
- CHANGELOG.md
- docs/man/*.1
- docs/*.md
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
use: github
filters:
exclude:
- '^docs:'
- '^test:'
- '^ci:'
- '^chore:'
- '^style:'
- Merge pull request
- Merge branch
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: 'Performance improvements'
regexp: "^.*perf[(\\w)]*:+.*$"
order: 2
- title: Others
order: 999
release:
github:
owner: "SharanRP"
name: gh-notif
draft: false
prerelease: auto
mode: replace
header: |
## gh-notif {{ .Tag }}
Welcome to this new release of gh-notif!
### Installation
#### Direct Download
Download the appropriate binary for your platform from the assets below.
#### Package Managers
- **Debian/Ubuntu**: Download the `.deb` file and install with `sudo dpkg -i gh-notif_*.deb`
- **Red Hat/CentOS/Fedora**: Download the `.rpm` file and install with `sudo rpm -i gh-notif-*.rpm`
- **Alpine Linux**: Download the `.apk` file and install with `sudo apk add --allow-untrusted gh-notif_*.apk`
footer: |
**Full Changelog**: https://github.com/SharanRP/gh-notif/compare/{{ .PreviousTag }}...{{ .Tag }}
## Docker Images
```bash
docker pull ghcr.io/sharanrp/gh-notif:{{ .Tag }}
docker pull ghcr.io/sharanrp/gh-notif:latest
```
# brews:
# - name: gh-notif
# repository:
# owner: "{{ .Env.GITHUB_REPOSITORY_OWNER }}"
# name: homebrew-tap
# token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
# folder: Formula
# homepage: https://github.com/SharanRP/gh-notif
# description: "A high-performance CLI tool for managing GitHub notifications"
# license: MIT
# test: |
# system "#{bin}/gh-notif --version"
# install: |
# bin.install "gh-notif"
# man1.install Dir["docs/man/*.1"]
# Scoop publishing disabled until Personal Access Token is configured
# To enable:
# 1. Create GitHub Personal Access Token with 'repo' permissions
# 2. Add as repository secret: SCOOP_BUCKET_GITHUB_TOKEN
# 3. Uncomment the section below and change token back to SCOOP_BUCKET_GITHUB_TOKEN
#
# scoops:
# - name: gh-notif
# repository:
# owner: "SharanRP"
# name: scoop-bucket
# token: "{{ .Env.SCOOP_BUCKET_GITHUB_TOKEN }}"
# homepage: https://github.com/SharanRP/gh-notif
# description: "A high-performance CLI tool for managing GitHub notifications"
# license: MIT
nfpms:
- id: packages
package_name: gh-notif
file_name_template: "{{ .ConventionalFileName }}"
vendor: gh-notif Contributors
homepage: https://github.com/SharanRP/gh-notif
maintainer: gh-notif Contributors <noreply@github.com>
description: |-
A high-performance CLI tool for managing GitHub notifications.
gh-notif helps you efficiently manage GitHub notifications with powerful
filtering, sorting, and grouping capabilities.
license: MIT
formats:
- deb
- rpm
- apk
dependencies:
- git
recommends:
- ca-certificates
bindir: /usr/bin
contents:
- src: ./docs/man/*.1
dst: /usr/share/man/man1/
file_info:
mode: 0644
# snapcrafts:
# - name: gh-notif
# summary: A high-performance CLI tool for managing GitHub notifications
# description: |
# gh-notif helps you efficiently manage GitHub notifications with powerful
# filtering, sorting, and grouping capabilities. It provides a modern
# terminal UI and supports concurrent operations for improved performance.
# grade: stable
# confinement: strict
# publish: true
# license: MIT
# base: core22
# apps:
# gh-notif:
# command: gh-notif
# plugs: ["home", "network"]
dockers:
- image_templates:
- "ghcr.io/sharanrp/gh-notif:{{ .Tag }}-amd64"
- "ghcr.io/sharanrp/gh-notif:latest-amd64"
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/amd64"
extra_files:
- docs/
- image_templates:
- "ghcr.io/sharanrp/gh-notif:{{ .Tag }}-arm64"
- "ghcr.io/sharanrp/gh-notif:latest-arm64"
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/arm64"
goarch: arm64
extra_files:
- docs/
docker_manifests:
- name_template: "ghcr.io/sharanrp/gh-notif:{{ .Tag }}"
image_templates:
- "ghcr.io/sharanrp/gh-notif:{{ .Tag }}-amd64"
- "ghcr.io/sharanrp/gh-notif:{{ .Tag }}-arm64"
- name_template: "ghcr.io/sharanrp/gh-notif:latest"
image_templates:
- "ghcr.io/sharanrp/gh-notif:latest-amd64"
- "ghcr.io/sharanrp/gh-notif:latest-arm64"
announce:
skip: true