Skip to content

Commit

Permalink
ci: Change from PAT to GitHub App
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Feb 8, 2024
1 parent 9a3fc49 commit b7e57c2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,21 @@ jobs:
args+=' --snapshot'
fi
echo "args=$args" >> $GITHUB_OUTPUT
- name: Generate Token
id: app-token
if: startsWith(github.ref, 'refs/tags/')
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.BOT_APP_ID }}
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
repositories: yampl,homebrew-tap
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: ${{ steps.vars.outputs.args }}
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit b7e57c2

Please sign in to comment.