forked from chanzuckerberg/czid-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.prerelease.yml
68 lines (61 loc) · 1.4 KB
/
.goreleaser.prerelease.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
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: true
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
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{.Tag}}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"