Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
chore: Using GitHub Apps for GoReleaser Token
Browse files Browse the repository at this point in the history
  • Loading branch information
naotama2002 committed Nov 2, 2023
1 parent 5b557fe commit 9429e22
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ jobs:
- id: tool-versions
run: awk '{ print $1"="$2 }' .tool-versions >> $GITHUB_OUTPUT
shell: bash
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.GITHUB_APP_ID }}
private-key: ${{ secrets.GITHUB_APP_PRIVATE_KEY }}
repositories: "assam,homebrew-assam"
- uses: goreleaser/goreleaser-action@v5
with:
version: "v${{ steps.tool-versions.outputs.goreleaser }}"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.MACHINE_ACCOUNT_PAT }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

0 comments on commit 9429e22

Please sign in to comment.