-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
60 lines (53 loc) · 1.33 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
before:
hooks:
- go mod download
builds:
- main: ./cmd/gcore-cli
binary: gcore-cli
flags:
- -trimpath
ldflags:
- -s -w
- -extldflags=-static
env:
- CGO_ENABLED=0
targets:
- darwin_amd64
- darwin_arm64
- linux_amd64
- linux_arm64
archives:
- format: binary
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-snapshot"
changelog:
sort: asc
filters:
exclude:
- '^Merge'
release:
github:
owner: g-core
name: gcore-cli
brews:
- name: gcore-cli
commit_author:
name: goreleaserbot
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
folder: Formula
homepage: "https://github.com/G-Core/gcore-cli"
description: "The official Gcore CLI"
license: "Apache-2.0"
skip_upload: auto
extra_install: |
chmod 0555, bin/"gcore-cli"
generate_completions_from_executable(bin/"gcore-cli", "completion")
repository:
owner: G-Core
name: homebrew-tap
# see https://goreleaser.com/errors/resource-not-accessible-by-integration
token: "{{ .Env.TAP_GITHUB_TOKEN }}"