mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-14 03:51:24 +02:00
fix: install completions with homebrew (#1877)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
parent
452e97d182
commit
fafeb9b0dc
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ snap.login
|
||||
site/
|
||||
www/docs/static/releases.json
|
||||
.vercel
|
||||
completions/
|
||||
|
@ -4,6 +4,7 @@ env:
|
||||
before:
|
||||
hooks:
|
||||
- go mod download
|
||||
- ./scripts/completions.sh
|
||||
builds:
|
||||
- env:
|
||||
- CGO_ENABLED=0
|
||||
@ -89,6 +90,10 @@ archives:
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
format: zip
|
||||
files:
|
||||
- README.md
|
||||
- LICENSE.md
|
||||
- completions/*
|
||||
brews:
|
||||
- tap:
|
||||
owner: goreleaser
|
||||
@ -100,6 +105,11 @@ brews:
|
||||
system "#{bin}/goreleaser -v"
|
||||
dependencies:
|
||||
- name: go
|
||||
install: |-
|
||||
bin.install "goreleaser"
|
||||
bash_completion.install "completions/goreleaser.bash" => "goreleaser"
|
||||
zsh_completion.install "completions/goreleaser.zsh" => "_goreleaser"
|
||||
fish_completion.install "completions/goreleaser.fish"
|
||||
scoop:
|
||||
bucket:
|
||||
owner: goreleaser
|
||||
|
7
scripts/completions.sh
Executable file
7
scripts/completions.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
rm -rf completions
|
||||
mkdir completions
|
||||
for sh in bash zsh fish; do
|
||||
go run main.go completion "$sh" >"completions/goreleaser.$sh"
|
||||
done
|
Loading…
Reference in New Issue
Block a user