Skip to content

Commit 0c3ca7a

Browse files
committed
ci: split tokens — GITHUB_TOKEN for release, HOMEBREW_TAP_TOKEN for cross-repo
1 parent b5ddd58 commit 0c3ca7a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ jobs:
4343
version: "~> v2"
4444
args: release --clean
4545
env:
46-
GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}

.goreleaser.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ brews:
4545
- repository:
4646
owner: 4ier
4747
name: homebrew-tap
48-
token: "{{ .Env.GITHUB_TOKEN }}"
48+
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
4949
homepage: "https://github.com/4ier/notion-cli"
5050
description: "Full-featured CLI for Notion. Like gh for GitHub, but for Notion."
5151

5252
scoops:
5353
- repository:
5454
owner: 4ier
5555
name: scoop-bucket
56-
token: "{{ .Env.GITHUB_TOKEN }}"
56+
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
5757
homepage: "https://github.com/4ier/notion-cli"
5858
description: "Full-featured CLI for Notion. Like gh for GitHub, but for Notion."
5959
license: "MIT"

0 commit comments

Comments
 (0)