diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 056b58e..931a65d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -32,8 +32,8 @@ jobs: run: mkdocs build - name: Build and Deploy - uses: JamesIves/github-pages-deploy-action@releases/v3 + uses: JamesIves/github-pages-deploy-action@v4 with: - ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} - BRANCH: gh-pages # The branch the action should deploy to. - FOLDER: site # The folder the action should deploy. + branch: gh-pages # 部署目标分支 + folder: site # 构建产物目录 + token: ${{ secrets.GITHUB_TOKEN }} # 使用 GitHub 默认的 Token