Skip to content

Commit c31ecdb

Browse files
committed
fix: goreleaser brew completions
1 parent a3b5b89 commit c31ecdb

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
version: latest
2424
args: release --rm-dist
2525
env:
26-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
26+
GITHUB_TOKEN: ${{secrets.GH_PAT}}

.goreleaser.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ gomod:
2525

2626
archives:
2727
- name_template: "{{.Binary}}_{{.Os}}_{{.Arch}}"
28+
files:
29+
- README.md
30+
- LICENSE
31+
- completion/**/*
2832
format_overrides:
2933
- goos: windows
3034
format: zip
@@ -62,5 +66,8 @@ brews:
6266
name: homebrew-tap
6367
test:
6468
system "#{bin}/task", "--help"
65-
url_template: https://github.com/go-task/task/releases/download/{{.Tag}}/{{.ArtifactName}}
66-
skip_upload: true
69+
install: |-
70+
bin.install "task"
71+
bash_completion.install "completion/bash/task.bash" => "task"
72+
zsh_completion.install "completion/zsh/_task" => "_task"
73+
fish_completion.install "completion/fish/task.fish"

0 commit comments

Comments
 (0)