forked from stripe/stripe-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
92 lines (92 loc) · 2.03 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
env:
- GO111MODULE=on
before:
hooks:
- go mod download
- go generate ./...
project_name: stripe
builds:
- main: ./cmd/stripe/main.go
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
ldflags:
- -s -w -X github.com/stripe/stripe-cli/pkg/version.Version={{.Version}}
archives:
-
replacements:
darwin: mac-os
linux: linux
windows: windows
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- none*
checksum:
name_template: '{{ .ProjectName }}-checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
nfpms:
-
vendor: Stripe
homepage: https://stripe.com
maintainer: Stripe <[email protected]>
description: Stripe CLI utility
license: Apache 2.0
formats:
- deb
- rpm
brews:
-
github:
owner: stripe
name: homebrew-stripe-cli
commit_author:
name: stripe-ci
email: [email protected]
homepage: https://stripe.com
description: Stripe CLI utility
install: |
bin.install "stripe"
rm Dir["#{bin}/{stripe-completion.bash,stripe-completion.zsh}"]
system bin/"stripe", "completion", "--shell", "bash"
system bin/"stripe", "completion", "--shell", "zsh"
bash_completion.install "stripe-completion.bash"
zsh_completion.install "stripe-completion.zsh"
(zsh_completion/"_stripe").write <<~EOS
#compdef stripe
_stripe () {
local e
e=$(dirname ${funcsourcetrace[1]%:*})/stripe-completion.zsh
if [[ -f $e ]]; then source $e; fi
}
EOS
scoop:
bucket:
owner: stripe
name: scoop-stripe-cli
commit_author:
name: stripe-ci
email: [email protected]
homepage: https://stripe.com
description: Stripe CLI utility
license: Apache 2.0
dockers:
- binaries:
- stripe
image_templates:
- "stripe/stripe-cli:latest"
- "stripe/stripe-cli:{{ .Tag }}"