-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
60 lines (51 loc) · 1.32 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
project_name: tool
archives:
- id: tool
files:
- LICENSE
format: tar.gz
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
brews:
- name: tool
caveats: An example of the goreleaser usage.
commit_author:
name: Kamil Samigullin
email: [email protected]
description: Template for a typical CLI-tool written on Go.
folder: Formula
homepage: https://go-tool.octolab.org/
repository:
owner: octolab
name: homebrew-tap
install: |
bin.install "tool"
output = Utils.popen_read("#{bin}/tool completion bash")
(bash_completion/"tool").write output
output = Utils.popen_read("#{bin}/tool completion fish")
(fish_completion/"tool.fish").write output
output = Utils.popen_read("#{bin}/tool completion zsh")
(zsh_completion/"_tool").write output
prefix.install_metafiles
test: |
system "#{bin}/tool version"
builds:
- id: tool
binary: tool
env:
- CGO_ENABLED=0
flags:
- -trimpath
goarch:
- amd64
- arm64
goos:
- darwin
- linux
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
main: .
checksum: { name_template: checksums.txt }
release:
github:
owner: octomation
name: go-tool