Skip to content

Commit

Permalink
Do a test using action generate token
Browse files Browse the repository at this point in the history
Signed-off-by: cmoulliard <[email protected]>
  • Loading branch information
cmoulliard committed Jan 28, 2025
1 parent e5fc848 commit ac8ef5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
- name: Generate a homebrew tap update token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.GORELEASER_HOMEBREW_APP_ID }}
private-key: ${{ secrets.GORELEASER_HOMEBREW_PRIVATE_KEY }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
Expand All @@ -29,4 +35,5 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
HOMEBREW_TOKEN: ${{ steps.generate-token.outputs.token }}
3 changes: 2 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ brews:
owner: ch007m
name: homebrew-helloworld
branch: main
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
#token: "{{ .Env.TAP_GITHUB_TOKEN }}"
token: "{{ .Env.HOMEBREW_TOKEN }}"
commit_author:
name: ch007m
email: [email protected]
Expand Down

0 comments on commit ac8ef5a

Please sign in to comment.