-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yaml
191 lines (177 loc) · 5.12 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
version: 2
before:
hooks:
- rm -rf out/man
- mkdir -p out/man
- mkdir -p out/html
- asciidoctor -a reproducible -b manpage -o out/man/git-age.1 docs/man/git-age.adoc
- gzip out/man/git-age.1
- asciidoctor -a reproducible -b html5 -o out/html/git-age.html docs/man/git-age.adoc
builds:
- id: unix
env:
- CGO_ENABLED=0
binary: git-age
ldflags:
- "-s -w -X github.com/prskr/git-age/handlers/cli.Version={{.Tag}} -X github.com/prskr/git-age/handlers/cli.Commit={{.Commit}} -X github.com/prskr/git-age/handlers/cli.Date={{.Date}}"
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
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
files:
- src: out/man/git-age.1.gz
dst: docs/git-age.1.gz
- LICENSE
sboms:
- artifacts: binary
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
checksum:
name_template: "checksums.txt"
nfpms:
- id: git_age
package_name: git-age
homepage: https://github.com/prskr/git-age
maintainer: Peter Kurfer <peter.kurfer@gmail.com>
license: MIT
formats:
- deb
- rpm
dependencies:
- git
contents:
- src: out/man/git-age.1.gz
dst: /usr/share/man/man1/git-age.1.gz
- src: LICENSE
dst: /usr/share/licenses/git-age/LICENSE
rpm:
signature:
key_file: '{{ envOrDefault "GITHUB_WORKSPACE" "." }}/.gnupg/gpg.key'
deb:
signature:
key_file: '{{ envOrDefault "GITHUB_WORKSPACE" "." }}/.gnupg/gpg.key'
brews:
- name: git-age
homepage: https://github.com/prskr/git-age
description: |-
git-age is a smudge/clean filter to encrypt/decrypt files in a git repository transparently
license: "MIT"
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
commit_msg_template: "chore: update {{ .ProjectName }} to version {{ .Tag }}"
skip_upload: auto
directory: Formula
dependencies:
- name: git
os: mac
extra_install: |
man1.install "docs/git-age.1.gz"
test: |
system "#{bin}/git-age --help"
repository:
owner: prskr
name: homebrew-the-prancing-package
token: "{{ .Env.GH_TAP_PAT }}"
pull_request:
enabled: true
scoops:
- commit_msg_template: "chore: update {{ .ProjectName }} to version {{ .Tag }}"
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
license: "MIT"
directory: bucket
homepage: https://github.com/prskr/git-age
depends: ["git"]
repository:
owner: prskr
name: scoop-the-prancing-package
token: "{{ .Env.GH_SCOOP_PAT }}"
pull_request:
enabled: true
base:
owner: prskr
name: scoop-the-prancing-package
branch: main
winget:
- name: git-age
publisher: prskr
short_description: |-
git-age is a smudge/clean filter to encrypt/decrypt files in a git repository transparently
license: mit
homepage: https://github.com/prskr/git-age
publisher_support_url: "https://github.com/prskr/git-age/issues/new"
package_identifier: prskr.git-age
url_template: "https://github.com/prskr/git-age/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
commit_msg_template: "chore: update {{ .ProjectName }} to version {{ .Tag }}"
license_url: "https://raw.githubusercontent.com/prskr/git-age/main/LICENSE"
release_notes: "{{.Changelog}}"
tags:
- git
- age
- cli
- encryption
repository:
owner: prskr
name: winget-pkgs
branch: "git-age-{{.Version}}"
token: "{{ .Env.GH_WINGET_PAT }}"
pull_request:
enabled: true
draft: true
base:
owner: microsoft
name: winget-pkgs
branch: master
aurs:
- name: git-age-bin
homepage: https://github.com/prskr/git-age
description: |
git-age is a smudge/clean filter to encrypt/decrypt files in a git repository transparently
maintainers:
- "Peter Kurfer <peter.kurfer@gmail.com>"
contributors:
- "Peter Kurfer <peter.kurfer@gmail.com>"
license: "MIT"
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://aur@aur.archlinux.org/git-age-bin.git"
provides:
- git-age
optdepends:
- git
package: |-
# bin
install -Dm755 "./git-age" "${pkgdir}/usr/bin/git-age"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/git-age/LICENSE"
# man pages
install -Dm644 "./docs/git-age.1.gz" "${pkgdir}/usr/share/man/man1/git-age.1.gz"
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
commit_msg_template: "chore: update to {{ .Tag }}"