From 5087b3dae4f26fb17c363150fedca020cd6392bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98ens-ftricomi=E2=80=99?= Date: Tue, 26 Sep 2023 16:40:57 +0100 Subject: [PATCH] new yaml --- .github/workflows/documentation.yaml | 29 +++++++++------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index 384c523..75f8d4c 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -4,24 +4,13 @@ permissions: contents: write jobs: docs: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 - - name: Install dependencies - run: | - pip install sphinx - - name: Debug - run: | - echo "GitHub Workspace: $GITHUB_WORKSPACE" - - name: Sphinx build - run: | - sphinx-build -build -b html $GITHUB_WORKSPACE/docs/source $GITHUB_WORKSPACE/docs/build - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/dev/python_repo' }} - with: - publish_branch: gh-pages - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: docs/build/ - force_orphan: true \ No newline at end of file + - id: deployment + uses: sphinx-notes/pages@v3 + with: + publish: false + - uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ${{ steps.deployment.outputs.artifact }} \ No newline at end of file