diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 29e7fff..eeeebc3 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -13,7 +13,7 @@ on: # 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages permissions: - contents: read + contents: write pages: write id-token: write @@ -67,5 +67,5 @@ jobs: uses: JamesIves/github-pages-deploy-action@v4 with: # 这是文档部署到的分支名称 - branch: gh-pages + branch: docs folder: docs/.vitepress/dist \ No newline at end of file