Skip to content

Commit 1ea453a

Browse files
authored
Merge pull request #8 from major-technology/j/7
Workflow and releaser
2 parents d173844 + 5d43aeb commit 1ea453a

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ jobs:
1515
- uses: actions/setup-go@v5
1616
with:
1717
go-version: "1.24.2"
18+
# Mint short-lived token for the tap repo
19+
- id: app-token
20+
uses: tibdex/github-app-token@v2
21+
with:
22+
app_id: ${{ secrets.APP_ID }}
23+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
24+
# Optionally restrict to just the tap repo
25+
repositories: 'homebrew-tap'
1826
- name: GoReleaser
1927
uses: goreleaser/goreleaser-action@v6
2028
with:
@@ -23,3 +31,4 @@ jobs:
2331
args: release --clean
2432
env:
2533
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

.goreleaser.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ brews: # <- still deprecated but works
3232
repository:
3333
owner: major-technology
3434
name: homebrew-tap
35+
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
3536
commit_author:
3637
name: goreleaser
3738
email: goreleaser@users.noreply.github.com

0 commit comments

Comments
 (0)