-
Notifications
You must be signed in to change notification settings - Fork 32
/
.goreleaser.yml
254 lines (238 loc) · 8.83 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
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
project_name: "sttr"
version: 2
# before are hooks that will be run before any builds are done, so good to put install scripts and stuff that your builds need here
before:
hooks:
# Remove unused packaged from the build process
- go mod tidy
- go generate
builds:
- main: ./main.go
binary: sttr
goos: ["linux", "darwin", "windows", "freebsd"]
goarch: ["386", "amd64", "arm64"]
flags:
- -trimpath
ldflags:
- -s -w -X "main.version={{.Version}}"
env:
- CGO_ENABLED=0
universal_binaries:
- replace: true
changelog:
sort: "asc"
filters:
exclude: ["^docs:", "demo", "^hugo:", "Merge pull request", "Merge branch"]
brews:
- repository:
owner: abhimanyu003
name: homebrew-sttr
name: sttr
homepage: "https://github.com/abhimanyu003/sttr"
description: "A cross-platform, cli app to perform various string operations."
license: "MIT"
skip_upload: auto
commit_author:
name: abhimanyu003
email: abhimanyusharma003@gmail.com
directory: Formula
install: |-
bin.install "sttr"
test: |
system "#{bin}/sttr -v"
scoops:
- repository:
owner: abhimanyu003
name: scoop-bucket
token: "{{ .Env.GITHUB_TOKEN }}"
name: sttr
homepage: "https://github.com/abhimanyu003/sttr"
description: "sttr is command line software that allows you to quickly run various transformation operations on the string."
license: "MIT"
nfpms:
- builds:
- sttr
vendor: abhimanyu003
homepage: "https://github.com/abhimanyu003/sttr/"
maintainer: "Abhimanyu Sharma <abhimanyusharma003@gmail.com>"
description: "A cross-platform, cli app to perform various operations on string"
license: MIT
formats:
- deb
- rpm
- archlinux
- termux.deb
bindir: /usr/bin
snapcrafts:
- name: sttr
publish: true
summary: A cross-platform, cli app to perform various operations on string.
description: |
sttr is command line software that allows you to quickly run various transformation operations on the string.
grade: stable
confinement: strict
license: MIT
base: core20
apps:
sttr:
plugs: ["home", "network"]
aurs:
- name: sttr-bin
homepage: "https://github.com/abhimanyu003/sttr"
description: "sttr is command line software that allows you to quickly run various transformation operations on the string."
maintainers:
- "Abhimanyu Sharma <abhimanyusharma003@gmail.com>"
license: "MIT"
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://aur@aur.archlinux.org/sttr-bin.git"
commit_author:
name: Abhimanyu Sharma
email: abhimanyusharma003@gmail.com
chocolateys:
- name: sttr
title: sttr - A cross-platform, cli app to perform various operations on string.
authors: Abhimanyu Sharma
project_url: https://github.com/abhimanyu003/sttr
url_template: "https://github.com/abhimanyu003/sttr/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
icon_url: https://cdn.jsdelivr.net/gh/abhimanyu003/sttr@main/media/logo.png
copyright: 2023 Abhimanyu Sharma
license_url: https://github.com/abhimanyu003/sttr/blob/main/LICENSE
require_license_acceptance: false
project_source_url: https://github.com/abhimanyu003/sttr
docs_url: https://github.com/abhimanyu003/sttr/blob/main/README.md
bug_tracker_url: https://github.com/abhimanyu003/sttr/issues
tags: "productivity encoding terminal string decoding tui developer-tools transform cli-app encrypt encryption-decryption count-lines devutils tui-app count-words zeropad"
summary: A cross-platform, cli app to perform various operations on string.
description: |
sttr installer package.
A cross-platform, cli app to perform various operations on string.
release_notes: "https://github.com/abhimanyu003/sttr/releases/tag/v{{ .Version }}"
api_key: "{{ .Env.CHOCOLATEY_API_KEY }}"
source_repo: "https://push.chocolatey.org/"
skip_publish: true
sboms:
- artifacts: archive
dockers:
- skip_push: false
use: buildx
dockerfile: .goreleaser.Dockerfile
image_templates:
- ghcr.io/abhimanyu003/{{ .ProjectName }}:{{ .Version }}-amd64
- docker.io/abhimanyu003/{{ .ProjectName }}:{{ .Version }}-amd64
build_flag_templates:
- --platform=linux/amd64
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .Commit }}
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.description=a cross-platform, cli app to perform various operations on string
- --label=org.opencontainers.image.vendor=abhimanyu003
- --label=org.opencontainers.image.licenses=MIT
- --label=org.opencontainers.image.source=https://github.com/abhimanyu003/sttr
- --label=org.opencontainers.image.authors=Abhimanyu Sharma <abhimanyusharma003@gmail.com>
- skip_push: false
goarch: arm64
use: buildx
dockerfile: .goreleaser.Dockerfile
image_templates:
- ghcr.io/abhimanyu003/{{ .ProjectName }}:{{ .Version }}-arm64
- docker.io/abhimanyu003/{{ .ProjectName }}:{{ .Version }}-arm64
build_flag_templates:
- --platform=linux/arm64
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .Commit }}
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.description=a cross-platform, cli app to perform various operations on string
- --label=org.opencontainers.image.vendor=abhimanyu003
- --label=org.opencontainers.image.licenses=MIT
- --label=org.opencontainers.image.source=https://github.com/abhimanyu003/sttr
- --label=org.opencontainers.image.authors=Abhimanyu Sharma <abhimanyusharma003@gmail.com>
docker_manifests:
- name_template: ghcr.io/abhimanyu003/{{ .ProjectName }}:{{ .Version }}
image_templates:
- ghcr.io/abhimanyu003/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/abhimanyu003/{{ .ProjectName }}:{{ .Version }}-arm64
- name_template: ghcr.io/abhimanyu003/{{ .ProjectName }}:latest
image_templates:
- ghcr.io/abhimanyu003/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/abhimanyu003/{{ .ProjectName }}:{{ .Version }}-arm64
- name_template: docker.io/abhimanyu003/{{ .ProjectName }}:{{ .Version }}
image_templates:
- docker.io/abhimanyu003/{{ .ProjectName }}:{{ .Version }}-amd64
- docker.io/abhimanyu003/{{ .ProjectName }}:{{ .Version }}-arm64
- name_template: docker.io/abhimanyu003/{{ .ProjectName }}:latest
image_templates:
- docker.io/abhimanyu003/{{ .ProjectName }}:{{ .Version }}-amd64
- docker.io/abhimanyu003/{{ .ProjectName }}:{{ .Version }}-arm64
signs:
- cmd: cosign
signature: "${artifact}.sig"
certificate: "${artifact}.pem"
output: true
artifacts: checksum
args:
- sign-blob
- "--oidc-provider=github-actions"
- "--output-certificate=${certificate}"
- "--output-signature=${signature}"
- "${artifact}"
- --yes
docker_signs:
- cmd: cosign
artifacts: manifests
output: true
args:
- "sign"
- "--oidc-provider=github-actions"
- "${artifact}@${digest}"
- --yes
archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
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 }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
winget:
- name: sttr
publisher: abhimanyu003
publisher_url: https://github.com/abhimanyu003
short_description: cross-platform, cli app to perform various operations on string
license: MIT
commit_author:
name: Abhimanyu Sharma
email: abhimanyusharma003@gmail.com
homepage: https://github.com/abhimanyu003/sttr
license_url: https://github.com/abhimanyu003/sttr/blob/master/LICENSE
copyright: Copyright (c) 2021-{{ .Now.Format "2006" }} Abhimanyu Sharma
release_notes: "{{ .Changelog }}"
release_notes_url: https://github.com/abhimanyu003/sttr/releases/tag/{{ .Tag }}
tags:
- cli
- tui
- string
- transform
- devutil
- encoding
- productivity
author: Abhimanyu Sharma
publisher_support_url: https://github.com/abhimanyu003/sttr/issues
repository:
owner: abhimanyu003
name: winget-pkgs
branch: sttr-{{ .Version }}
token: "{{ .Env.GITHUB_TOKEN }}"
pull_request:
enabled: true
base:
owner: microsoft
name: winget-pkgs
branch: master