From 670562d5f37d929ffe592ecf0e34c09cec157e01 Mon Sep 17 00:00:00 2001 From: Silvio Vasiljevic Date: Mon, 2 Mar 2026 18:30:44 +0100 Subject: [PATCH] Add homebrew private tap publishing target --- .github/workflows/ci.yml | 1 + .goreleaser.yaml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4a530c..fea6d65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -157,3 +157,4 @@ jobs: args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + HOMEBREW_TAP_TOKEN: ${{ secrets.PRO_ACCESS_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 804c190..67e08e1 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -2,6 +2,14 @@ version: 2 project_name: lstk +before: + hooks: + - go mod tidy + - mkdir -p completions + - sh -c "go run . completion bash > completions/lstk.bash" + - sh -c "go run . completion zsh > completions/lstk.zsh" + - sh -c "go run . completion fish > completions/lstk.fish" + builds: - id: lstk main: ./main.go @@ -31,9 +39,34 @@ archives: - goos: windows formats: - zip + files: + - completions/* checksum: name_template: checksums.txt changelog: use: github-native + +homebrew_casks: + - name: lstk + directory: Casks + repository: + owner: localstack + name: homebrew-tap + token: "{{ .Env.HOMEBREW_TAP_TOKEN }}" + homepage: https://github.com/localstack/lstk + description: "LocalStack CLI v2 - Start and manage LocalStack emulators" + license: Apache-2.0 + url: + verified: github.com/localstack/lstk + completions: + bash: completions/lstk.bash + zsh: completions/lstk.zsh + fish: completions/lstk.fish + hooks: + post: + install: | + if OS.mac? + system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/lstk"] + end