-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
199 lines (199 loc) · 5.69 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
194
195
196
197
198
199
---
announce:
bluesky:
enabled: false
username: "mcornick.lol"
mastodon:
enabled: false
server: https://social.lol
skip: '{{ ne .Prerelease "" }}'
archives:
- builds_info:
group: root
owner: root
files:
- README.md
- LICENSE
- completions/*
- manpages/*.1
format_overrides:
- format: zip
goos: windows
aurs:
- description: A CLI for omg.lol
git_url: ssh://git@github.com/mcornick/clilol-aur.git
homepage: https://clilol.readthedocs.io/
license: MPL-2.0
maintainers:
- Mark Cornick <mark@markcornick.com>
name: clilol-bin
package: |
install -Dm755 "./clilol" "${pkgdir}/usr/bin/clilol"
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/clilol/LICENSE"
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
install -Dm644 "./completions/clilol.bash" "${pkgdir}/usr/share/bash-completion/completions/clilol"
install -Dm644 "./completions/clilol.zsh" "${pkgdir}/usr/share/zsh/site-functions/_clilol"
install -Dm644 "./completions/clilol.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/clilol.fish"
install -Dm644 "./manpages/*.1" "${pkgdir}/usr/share/man/man1/*.1"
private_key: "{{ .Env.AUR_KEY }}"
skip_upload: auto
before:
hooks:
- go mod tidy
- bash ./scripts/completions.sh
- bash ./scripts/manpages.sh
brews:
- description: A CLI for omg.lol
homepage: https://clilol.readthedocs.io/
install: |
bin.install "clilol"
bash_completion.install "completions/clilol.bash" => "clilol"
zsh_completion.install "completions/clilol.zsh" => "_clilol"
fish_completion.install "completions/clilol.fish"
man1.install Dir["manpages/*.1"]
license: MPL-2.0
repository:
name: homebrew-tap
owner: mcornick
skip_upload: auto
builds:
- env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w -X git.mcornick.dev/mcornick/clilol/cmd.version={{.Version}}
mod_timestamp: "{{ .CommitTimestamp }}"
targets:
- go_first_class
changelog:
filters:
exclude:
- "^test:"
- "^chore:"
- "^docs:"
- merge conflict
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
sort: asc
checksum:
name_template: checksums.txt
docker_signs:
- args:
- sign
- --yes
- ${artifact}
artifacts: all
kos:
- bare: true
build: clilol
creation_time: "{{ .CommitTimestamp }}"
ko_data_creation_time: "{{ .CommitTimestamp }}"
labels:
io.artifacthub.package.license: MPL-2.0
io.artifacthub.package.maintainers: '[{"name":"Mark Cornick","email":"mark@markcornick.com"}]'
io.artifacthub.package.readme-url: https://github.com/mcornick/clilol/tree/main/item/README.md
org.opencontainers.image.description: A CLI for omg.lol
org.opencontainers.image.name: "{{ .ProjectName }}"
org.opencontainers.image.revision: "{{ .FullCommit }}"
org.opencontainers.image.source: "{{ .GitURL }}"
org.opencontainers.image.version: "{{ .Version }}"
platforms:
- linux/amd64
- linux/arm64
repositories:
- ghcr.io/mcornick/clilol
tags:
- latest
- "{{ .Tag }}"
milestones:
- close: true
nfpms:
- archlinux:
packager: Mark Cornick <mark@markcornick.com>
contents:
- dst: /usr/share/bash-completion/completions/clilol
file_info:
mode: 0644
src: ./completions/clilol.bash
- dst: /usr/share/fish/vendor_completions.d/clilol.fish
file_info:
mode: 0644
src: ./completions/clilol.fish
- dst: /usr/share/zsh/vendor-completions/_clilol
file_info:
mode: 0644
src: ./completions/clilol.zsh
- dst: /usr/share/man/man1/
file_info:
mode: 0644
src: ./manpages/*.1
- dst: /usr/share/doc/clilol/copyright
file_info:
mode: 0644
src: ./LICENSE
description: A CLI for omg.lol
formats:
- apk
- archlinux
- deb
- rpm
homepage: https://clilol.readthedocs.io/
license: MPL-2.0
maintainer: Mark Cornick <mark@markcornick.com>
vendor: Mark Cornick
nix:
- description: A CLI for omg.lol
extra_install: |
installManPage ./manpages/*.1
installShellCompletion ./completions/clilol.{bash,fish,zsh}
homepage: https://clilol.readthedocs.io/
license: mpl20
repository:
name: nixpkgs
owner: mcornick
skip_upload: auto
notarize:
macos:
- enabled: '{{ isEnvSet "MACOS_SIGN_P12" }}'
sign:
certificate: "{{ .Env.MACOS_SIGN_P12 }}"
password: "{{ .Env.MACOS_SIGN_PASSWORD }}"
notarize:
issuer_id: "{{ .Env.MACOS_NOTARY_ISSUER_ID }}"
key: "{{ .Env.MACOS_NOTARY_KEY }}"
key_id: "{{ .Env.MACOS_NOTARY_KEY_ID }}"
wait: false
publishers:
- name: fury.io
env:
- "FURY_TOKEN={{ .Env.FURY_TOKEN }}"
cmd: bash ./scripts/fury-upload.sh {{ .ArtifactName }}
disable: '{{ if ne .Prerelease "" }}true{{ end }}'
release:
github:
name: clilol
owner: mcornick
prerelease: auto
sboms:
- artifacts: archive
scoops:
- description: A CLI for omg.lol
homepage: https://clilol.readthedocs.io/
license: MPL-2.0
repository:
name: scoop-bucket
owner: mcornick
skip_upload: auto
signs:
- artifacts: checksum
args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]
snapshot:
version_template: "{{ incpatch .Version }}-next"
universal_binaries:
- replace: true
version: 2