Skip to content

Commit b00cabe

Browse files
committed
chore: Update .goreleaser.yml
1 parent d82de15 commit b00cabe

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.goreleaser.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
version: 2
22

3+
before:
4+
hooks:
5+
- go mod tidy
6+
- ./scripts/build-completions.sh
7+
38
builds:
49
- ldflags:
510
- -s -w -X github.com/koki-develop/clive/cmd.version=v{{.Version}}
@@ -15,6 +20,8 @@ source:
1520

1621
archives:
1722
- formats: [tar.gz]
23+
files:
24+
- completions/*
1825
name_template: >-
1926
{{ .ProjectName }}_
2027
{{- title .Os }}_
@@ -34,10 +41,16 @@ brews:
3441
owner: koki-develop
3542
name: homebrew-tap
3643
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
44+
directory: Formula
3745
homepage: https://github.com/koki-develop/clive
3846
description: Automates terminal operations and lets you view them live via a browser
3947
dependencies:
4048
- name: ttyd
49+
install: |
50+
bin.install "clive"
51+
bash_completion.install "completions/clive.bash" => "clive"
52+
zsh_completion.install "completions/clive.zsh" => "_clive"
53+
fish_completion.install "completions/clive.fish"
4154
test: |
4255
system "#{bin}/clive", "init"
4356
system "#{bin}/clive", "validate"

0 commit comments

Comments
 (0)