From c31ecdb8de1c2d7b5641a7f90682a657169eb0aa Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Wed, 27 Oct 2021 14:44:10 -0300 Subject: [PATCH] fix: goreleaser brew completions --- .github/workflows/release.yml | 2 +- .goreleaser.yml | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 97021d65..57b89bd8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,4 +23,4 @@ jobs: version: latest args: release --rm-dist env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{secrets.GH_PAT}} diff --git a/.goreleaser.yml b/.goreleaser.yml index c6dad187..5de825bd 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -25,6 +25,10 @@ gomod: archives: - name_template: "{{.Binary}}_{{.Os}}_{{.Arch}}" + files: + - README.md + - LICENSE + - completion/**/* format_overrides: - goos: windows format: zip @@ -62,5 +66,8 @@ brews: name: homebrew-tap test: system "#{bin}/task", "--help" - url_template: https://github.com/go-task/task/releases/download/{{.Tag}}/{{.ArtifactName}} - skip_upload: true + install: |- + bin.install "task" + bash_completion.install "completion/bash/task.bash" => "task" + zsh_completion.install "completion/zsh/_task" => "_task" + fish_completion.install "completion/fish/task.fish"