Skip to content
This repository was archived by the owner on May 11, 2022. It is now read-only.

Commit 4d9d74e

Browse files
committed
integrate goreleaser
1 parent 34d25e6 commit 4d9d74e

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed

.goreleaser.yml

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
project_name: tablo
3+
4+
archives:
5+
- id: tablo
6+
builds:
7+
- tablo
8+
- tabloctl
9+
files:
10+
- LICENSE
11+
format: tar.gz
12+
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
13+
replacements:
14+
386: 32bit
15+
amd64: 64bit
16+
darwin: macOS
17+
linux: Linux
18+
19+
brews:
20+
- name: tablo
21+
caveats:
22+
commit_author:
23+
name: Kamil Samigullin
24+
25+
description: The one point of view to all your task boards.
26+
folder: Formula
27+
homepage: https://github.com/octopot/tablo
28+
github:
29+
owner: octolab
30+
name: homebrew-tap
31+
install: |
32+
bin.install "tablo"
33+
output = Utils.popen_read("#{bin}/tablo completion bash")
34+
(bash_completion/"tablo").write output
35+
output = Utils.popen_read("#{bin}/tablo completion zsh")
36+
(zsh_completion/"_tablo").write output
37+
38+
bin.install "tabloctl"
39+
output = Utils.popen_read("#{bin}/tabloctl completion bash")
40+
(bash_completion/"tabloctl").write output
41+
output = Utils.popen_read("#{bin}/tabloctl completion zsh")
42+
(zsh_completion/"_tabloctl").write output
43+
44+
prefix.install_metafiles
45+
test: |
46+
system "#{bin}/tablo version"
47+
system "#{bin}/tabloctl version"
48+
49+
builds:
50+
- id: tablo
51+
binary: tablo
52+
env:
53+
- CGO_ENABLED=0
54+
flags:
55+
- -trimpath
56+
goarch:
57+
- 386
58+
- amd64
59+
goos:
60+
- darwin
61+
- linux
62+
ldflags:
63+
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
64+
main: ./cmd/server/main.go
65+
- id: tabloctl
66+
binary: tabloctl
67+
env:
68+
- CGO_ENABLED=0
69+
flags:
70+
- -trimpath
71+
goarch:
72+
- 386
73+
- amd64
74+
goos:
75+
- darwin
76+
- linux
77+
ldflags:
78+
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
79+
main: ./cmd/client/main.go
80+
81+
checksum: { name_template: checksums.txt }
82+
83+
release:
84+
github:
85+
owner: octopot
86+
name: tablo

0 commit comments

Comments
 (0)