From a717507402c81c42648514e0c54d289f24405644 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 10 Apr 2026 01:42:52 +0000 Subject: [PATCH] feat: add Homebrew tap auto-update via GoReleaser Add brews section to .goreleaser.yaml to auto-publish the Homebrew formula to shelltime/homebrew-tap on each release. Pass HOMEBREW_TAP_GITHUB_TOKEN in the release workflow. https://claude.ai/code/session_01TwCfzkqy4jkzx6UaZjHdp6 --- .github/workflows/release.yaml | 1 + .goreleaser.yaml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b0b531d..3e78e2a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -63,3 +63,4 @@ jobs: QUILL_NOTARY_KEY: ${{ secrets.QUILL_NOTARY_KEY }} QUILL_NOTARY_KEY_ID: ${{ secrets.QUILL_NOTARY_KEY_ID }} QUILL_NOTARY_ISSUER: ${{ secrets.QUILL_NOTARY_ISSUER }} + HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ab2f39f..846f6b7 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -136,3 +136,34 @@ notarize: key_id: "{{.Env.QUILL_NOTARY_KEY_ID}}" key: "{{.Env.QUILL_NOTARY_KEY}}" wait: true +brews: + - name: shelltime + ids: + - mt-common + - mac + repository: + owner: shelltime + name: homebrew-tap + token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" + directory: Formula + homepage: "https://shelltime.xyz" + description: "Track and analyze your shell usage - ShellTime CLI" + license: "MIT" + commit_author: + name: shelltime-bot + email: bot@shelltime.xyz + install: | + bin.install "shelltime" + bin.install "shelltime-daemon" + test: | + system "#{bin}/shelltime", "--version" + caveats: | + To get started with ShellTime, run: + shelltime init + + Or set up manually: + shelltime auth + shelltime hooks install + shelltime daemon install + + For more info, visit https://shelltime.xyz