diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index fcf08d4..5f6d3c1 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -32,6 +32,27 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: ammaraskar/sphinx-action@master + - uses: actions/setup-python@v5 with: - docs-folder: "docs/" + python-version: '3.10' + cache: 'pip' + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + pip install --upgrade sphinx sphinx-tabs + shell: bash + - name: Build documentation + run: | + make html + - name: clone gh-pages branch + uses: actions/checkout@v4 + if: ${{ success() && github.event_name != 'pull_request' && !env.ACT }} + with: + ref: gh-pages + path: gh-pages + - name: Deploy Pages + if: ${{ success() && github.event_name != 'pull_request' && !env.ACT }} + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_build/html