From 7dd8aef3d50269203e0b9617cbf431351335e1f5 Mon Sep 17 00:00:00 2001 From: Rose Pearson Date: Tue, 15 Oct 2024 08:20:56 +1300 Subject: [PATCH] update pages workflow to try fix --- .github/workflows/autoblack.yml | 2 +- .github/workflows/update_pages.yml | 30 +++++++++++------------------- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/.github/workflows/autoblack.yml b/.github/workflows/autoblack.yml index ee1689ef0..93d72116d 100644 --- a/.github/workflows/autoblack.yml +++ b/.github/workflows/autoblack.yml @@ -27,4 +27,4 @@ jobs: git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY git checkout $GITHUB_HEAD_REF git commit -am "fixup: Format Python code with Black" - git push \ No newline at end of file + git push diff --git a/.github/workflows/update_pages.yml b/.github/workflows/update_pages.yml index 9dcf29324..50a9441fc 100644 --- a/.github/workflows/update_pages.yml +++ b/.github/workflows/update_pages.yml @@ -1,26 +1,18 @@ +name: Deploy Sphinx documentation to Pages + +on: [pull_request] + #push: + #branches: [main] # branch to trigger deployment -name: Pages -on: - push: - branches: - - main jobs: - build: + pages: runs-on: ubuntu-latest steps: - - - name: Checkout - uses: actions/checkout@v2 + - 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@master - with: - documentation_path: docs - - - 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 \ No newline at end of file + publish_dir: ${{ steps.deployment.outputs.artifact }}