From 5c409f43147368b044852ea3890e78f257f416ac Mon Sep 17 00:00:00 2001 From: abs3nt Date: Tue, 28 Feb 2023 09:02:16 -0800 Subject: [PATCH] CI: add completions --- .gitignore | 1 + .goreleaser.yaml | 2 ++ .woodpecker.yml | 6 +++--- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index be43826..932f795 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ bin/* gospt_zsh gospt_bash gospt_fish +completions .idea/* .idea diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 72b5871..5747665 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -30,6 +30,8 @@ archives: format_overrides: - goos: windows format: zip + files: + - completions/* checksum: name_template: 'checksums.txt' snapshot: diff --git a/.woodpecker.yml b/.woodpecker.yml index 8c36478..c92935d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -3,9 +3,9 @@ pipeline: image: golang:1.19 commands: - go build -o gospt - - ./gospt completion zsh > gospt_zsh - - ./gospt completion bash > gospt_bash - - ./gospt completion fish > gospt_fish + - ./gospt completion zsh > completions/gospt_zsh + - ./gospt completion bash > completions/gospt_bash + - ./gospt completion fish > completions/gospt_fish publish: image: goreleaser/goreleaser