diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index 42e8076..352dbde 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -32,8 +32,9 @@ jobs: mkdocs build mkdocs build # twice, see https://github.com/patrick-kidger/pytkdocs_tweaks - - name: Upload docs - uses: actions/upload-artifact@v4 + # Deploy to GitHub Pages + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v4 with: - name: docs - path: site # where `mkdocs build` puts the built site \ No newline at end of file + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./site # mkdocs 构建后的输出目录 \ No newline at end of file