Skip to content

Commit 6c6c54f

Browse files
committed
ci: publish homebrew cask + scoop manifest on release
Enable the homebrew_casks (migrated from the now-deprecated brews) and scoops publishers — they push spoo.rb / spoo.json to spoo-me/homebrew-tap and scoop-bucket on each tag. Wire TAP_GITHUB_TOKEN into release.yml for the cross-repo writes. Validated with goreleaser check + a snapshot build.
1 parent fd25fe0 commit 6c6c54f

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ jobs:
2222
args: release --clean
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
# PAT with write access to spoo-me/homebrew-tap + scoop-bucket
26+
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,22 @@ checksum:
3939
changelog:
4040
use: github-native
4141

42-
# Uncomment once the spoo-me/homebrew-tap repo exists and a
43-
# cross-repo token is configured as the TAP_GITHUB_TOKEN secret.
44-
# brews:
45-
# - repository:
46-
# owner: spoo-me
47-
# name: homebrew-tap
48-
# token: "{{ .Env.TAP_GITHUB_TOKEN }}"
49-
# homepage: https://spoo.me
50-
# description: The official command-line client for spoo.me
51-
# license: Apache-2.0
52-
# manpages: manpages/spoo.1.gz
53-
54-
# Uncomment once the spoo-me/scoop-bucket repo exists.
55-
# scoops:
56-
# - repository:
57-
# owner: spoo-me
58-
# name: scoop-bucket
59-
# token: "{{ .Env.TAP_GITHUB_TOKEN }}"
60-
# homepage: https://spoo.me
61-
# description: The official command-line client for spoo.me
62-
# license: Apache-2.0
42+
# Publishes the cask to spoo-me/homebrew-tap; needs the TAP_GITHUB_TOKEN
43+
# secret (a PAT with write access to that repo) in the release workflow.
44+
homebrew_casks:
45+
- repository:
46+
owner: spoo-me
47+
name: homebrew-tap
48+
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
49+
homepage: https://spoo.me
50+
description: The official command-line client for spoo.me
51+
52+
# Publishes the manifest to spoo-me/scoop-bucket (same TAP_GITHUB_TOKEN).
53+
scoops:
54+
- repository:
55+
owner: spoo-me
56+
name: scoop-bucket
57+
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
58+
homepage: https://spoo.me
59+
description: The official command-line client for spoo.me
60+
license: Apache-2.0

0 commit comments

Comments
 (0)