Move completions generation from goreleaser to Makefile

This commit is contained in:
Aleksei Khudiakov 2023-04-08 11:31:09 +10:00
parent be45eedc18
commit 80f91af171
No known key found for this signature in database
GPG key ID: 67771D410C411686
2 changed files with 17 additions and 6 deletions

View file

@ -9,10 +9,7 @@ before:
hooks:
- go mod tidy
- make manpages GH_VERSION={{.Version}}
- mkdir -p ./share/bash-completion/completions ./share/fish/vendor_completions.d ./share/zsh/site-functions
- sh -c "go run ./cmd/gh completion -s bash > ./share/bash-completion/completions/gh"
- sh -c "go run ./cmd/gh completion -s fish > ./share/fish/vendor_completions.d/gh.fish"
- sh -c "go run ./cmd/gh completion -s zsh > ./share/zsh/site-functions/_gh"
- make completions
builds:
- <<: &build_defaults