-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
80 lines (73 loc) · 1.98 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
version: 2
before:
hooks:
- go mod tidy
- go test ./...
- ./scripts/completions.sh
builds:
- binary: safebox
ldflags:
- -s -w -X main.version={{.Version}}
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
checksum:
name_template: 'checksums.txt'
archives:
- format: 'tar.gz'
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: 'dist'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
- name: safebox
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
directory: Formula
description: "A Fast and Flexible secret manager built with love by adikari in Go."
license: "MIT"
test: |
system "#{bin}/safebox --version"
install: |
bin.install "safebox"
bash_completion.install "completions/safebox.bash" => "safebox"
zsh_completion.install "completions/safebox.zsh" => "_safebox"
fish_completion.install "completions/safebox.fish"
repository:
owner: adikari
name: homebrew-taps
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
nfpms:
- id: safebox
package_name: safebox
maintainer: Adikari <[email protected]>
description: "A Fast and Flexible secret manager built with love by adikari in Go."
license: "MIT"
formats:
- apk
- deb
- rpm
- termux.deb
contents:
- src: ./completions/safebox.bash
dst: /usr/share/bash-completion/completions/safebox
file_info:
mode: 0644
- src: ./completions/safebox.fish
dst: /usr/share/fish/vendor_completions.d/safebox.fish
file_info:
mode: 0644
- src: ./completions/safebox.zsh
dst: /usr/share/zsh/vendor-completions/_safebox
file_info:
mode: 0644
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj