diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a0f1ae0..c1c8ca0 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -11,18 +11,13 @@ on: - 'docs/**' jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - - uses: actions/setup-python@v2 - - uses: actions/checkout@master + - id: deployment + uses: sphinx-notes/pages@v3 with: - fetch-depth: 0 # otherwise, you will failed to push refs to dest repo - - name: Build and Commit - uses: sphinx-notes/pages@v2 - with: - requirements_path: "docs/requirements.txt" - - name: Push changes - uses: ad-m/github-push-action@master + publish: false + - uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - branch: gh-pages + publish_dir: ${{ steps.deployment.outputs.artifact }}