From ff547043dd314f48376bbddc07d66445b6614fc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98ens-ftricomi=E2=80=99?= Date: Wed, 27 Sep 2023 17:07:34 +0100 Subject: [PATCH] yaml to _modules --- .github/workflows/documentation.yaml | 29 +++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index 75f8d4c..4c1470f 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -4,13 +4,24 @@ permissions: contents: write jobs: docs: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - 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 + - 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/_modules + force_orphan: true \ No newline at end of file