forked from chanzuckerberg/czid-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
98 lines (90 loc) · 2.42 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
before:
hooks:
- go mod tidy
builds:
- id: "build-with-completions"
binary: czid
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
ldflags: &ldflags
- -s -w
- -X github.com/chanzuckerberg/czid-cli/pkg.Version={{.Version}}
- -X github.com/chanzuckerberg/czid-cli/pkg/auth0.defaultClientID={{.Env.AUTH_0_CLIENT_ID}}
- -X github.com/chanzuckerberg/czid-cli/pkg/auth0.defaultAuth0Host={{.Env.AUTH0_HOST}}
- -X github.com/chanzuckerberg/czid-cli/pkg/czid.defaultCZIDBaseURL={{.Env.CZID_BASE_URL}}
hooks:
post: "scripts/generate_completions.sh {{.Path}}"
- binary: czid
env:
- CGO_ENABLED=0
goos:
- darwin
- windows
goarch:
- amd64
- arm64
ignore:
- goos: linux
goarch: amd64
- goos: windows
goarch: arm64
ldflags: *ldflags
release:
prerelease: false
archives:
# Default without version for easy latest release linking
- name_template: "{{.ProjectName}}_{{.Os}}_{{.Arch}}{{if .Arm}}v{{.Arm}}{{end}}{{if .Mips}}_{{.Mips}}{{end}}"
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
files:
- LICENSE.md
- README.md
- bash_completion
- zsh_completion
- fish_completion
- powershell_completion
brews:
- description: "A CLI for uploading samples to Chan Zuckerberg ID"
tap:
owner: chanzuckerberg
name: homebrew-tap
token: "{{.Env.HOMEBREW_TAP_GITHUB_TOKEN}}"
homepage: "https://github.com/chanzuckerberg/czid-cli"
test: system "#{bin}/czid --version"
install: |
bin.install "czid"
bash_completion.install "bash_completion" => "czid"
zsh_completion.install "zsh_completion" => "_czid"
nfpms:
-
vendor: chanzuckerberg
maintainer: Todd Morse <todd@morsecodist.io>
homepage: "https://github.com/chanzuckerberg/czid-cli"
description: "A CLI for uploading samples to Chan Zuckerberg ID"
license: MIT
# Default without version for easy latest release linking
file_name_template: "{{.PackageName}}_{{ .Os }}_{{.Arch}}{{if .Arm}}v{{.Arm}}{{end}}{{if .Mips}}_{{.Mips}}{{end}}"
formats:
- deb
- rpm
contents:
- src: "bash_completion"
dst: "/etc/bash_completion.d/czid"
- src: "zsh_completion"
dst: "/usr/share/zsh/functions/Completion/czid"
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{.Tag}}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"