Skip to content

Commit 621cfc9

Browse files
Fix Homebrew tap installation (#3)
- Add HOMEBREW_TAP_TOKEN to GoReleaser config so it can push the formula to javaBin/homebrew-tap (GITHUB_TOKEN is scoped to this repo) - Pass the token in the release workflow - Add .gitignore and remove accidentally committed binary
1 parent 3990342 commit 621cfc9

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ jobs:
2626
args: release --clean
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
javabin
2+
dist/

.goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ brews:
2222
- repository:
2323
owner: javaBin
2424
name: homebrew-tap
25+
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
2526
homepage: https://github.com/javaBin/javabin-cli
2627
description: Developer CLI for the Javabin platform
2728
install: |

javabin

-15.3 MB
Binary file not shown.

0 commit comments

Comments
 (0)