Skip to content

Commit fe7a1f4

Browse files
bot 权限处理
1 parent 86ee1bb commit fe7a1f4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/deploy_books.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ jobs:
3636
working-directory: book_template
3737
run: mdbook build
3838

39+
40+
- name: Setup Git for push
41+
run: |
42+
git config --global user.name "github-actions[bot]"
43+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
44+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
45+
3946
- name: Deploy to GitHub Pages
4047
uses: peaceiris/actions-gh-pages@v4
4148
with:

0 commit comments

Comments
 (0)