diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 0ba8230..5d91ea0 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,5 +1,4 @@ -# Simple workflow for deploying static content to GitHub Pages -name: Deploy static content to Pages +name: Publish docs to GitHub Pages on: # Runs on pushes targeting the default branch @@ -22,22 +21,34 @@ concurrency: cancel-in-progress: false jobs: - # Single deploy job since we're just deploying - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Setup Pages uses: actions/configure-pages@v5 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.10" + - name: Install sphinx env + run: python -m pip -r docs/requirements.txt + - name: Build documentation + run: sphinx-build -b html -a -W -T docs _pages - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v4 with: # Upload entire repository - path: '.' + path: ./_pages + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4