Skip to content

Commit 812d943

Browse files
switch to github apps
1 parent 2c47641 commit 812d943

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ jobs:
2424
name: Build HTML
2525
runs-on: ubuntu-latest
2626
steps:
27+
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
28+
id: app-token
29+
with:
30+
app-id: ${{ secrets.LEANPROVER_COMMUNITY_WEBSITE_APP_ID }}
31+
private-key: ${{ secrets.LEANPROVER_COMMUNITY_WEBSITE_PRIVATE_KEY }}
32+
2733
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2834

2935
- name: install Python
@@ -46,7 +52,7 @@ jobs:
4652
./deploy.sh
4753
env:
4854
git_hash: ${{ github.sha }}
49-
DEPLOY_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
DEPLOY_GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
5056
DEPLOY_GITHUB_USER: leanprover-community-bot
5157
github_repo: ${{ github.repository }}
5258
github_ref: ${{ github.ref }}

0 commit comments

Comments
 (0)