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