generated from octomation/go-tool
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
61 lines (52 loc) · 1.48 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
project_name: tool #find-and-replace:template
archives:
- id: tool #find-and-replace:template
files:
- LICENSE
format: tar.gz
name_template: "{{.Binary}}_{{.Version}}_{{.Os}}-{{.Arch}}"
rlcp: true
brews:
- name: tool #find-and-replace:template
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/
tap:
owner: octolab
name: homebrew-tap
install: |
bin.install "tool" #find-and-replace:template
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 #find-and-replace:template
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 #find-and-replace:template