From d4ab258b5f1f193c7268f9ca7c3789095aa5911c Mon Sep 17 00:00:00 2001 From: Tom White Date: Tue, 16 Jan 2024 12:02:22 +0000 Subject: [PATCH] Upgrade to sphinx-notes/pages v3 --- .github/workflows/docs.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 07037c53..bd464a08 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,21 +5,15 @@ on: - main jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - - uses: actions/setup-python@v3 - with: - python-version: "3.9" - architecture: x64 - - uses: actions/checkout@v3 - with: - fetch-depth: 0 # otherwise, you will failed to push refs to dest repo - name: Build and Commit - uses: sphinx-notes/pages@v2 + id: deployment + uses: sphinx-notes/pages@v3 with: - requirements_path: ./docs/requirements.txt + publish: false - name: Push changes - uses: ad-m/github-push-action@master + uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - branch: gh-pages + publish_dir: ${{ steps.deployment.outputs.artifact }}