Skip to content

Commit 30fe542

Browse files
committed
ci: add homebrew tap in goreleaser
1 parent 6e3628d commit 30fe542

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.goreleaser.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ builds:
3030
- <<: *build_defaults
3131
id: linux
3232
goos: [linux]
33-
goarch: [386, arm, amd64, arm64]
33+
goarch: [arm, arm64, amd64]
3434
env:
3535
- CGO_ENABLED=0
3636

3737
- <<: *build_defaults
3838
id: windows
3939
goos: [windows]
40-
goarch: [386, amd64]
40+
goarch: [amd64]
4141

4242
archives:
4343
- id: nix
@@ -76,3 +76,21 @@ changelog:
7676
order: 1
7777
- title: Others
7878
order: 999
79+
80+
brews:
81+
- tap:
82+
owner: instill-ai
83+
name: homebrew-tap
84+
description: Instill AI's official command-line tool
85+
homepage: https://github.com/instill-ai/cli
86+
license: "Apache-2.0"
87+
commit_author:
88+
name: droplet-bot
89+
90+
install: |
91+
bin.install "bin/instill"
92+
(bash_completion/"instill").write `#{bin}/instill completion -s bash`
93+
(fish_completion/"instill.fish").write `#{bin}/instill completion -s fish`
94+
(zsh_completion/"_instill").write `#{bin}/instill completion -s zsh`
95+
test: |
96+
assert_match "instill version #{version}", shell_output("#{bin}/instill --version")

0 commit comments

Comments
 (0)