Skip to content

🔧 Fix GitHub Pages deployment #2

🔧 Fix GitHub Pages deployment

🔧 Fix GitHub Pages deployment #2

Workflow file for this run

name: Build and Deploy Documentation
on:
push:
branches: [ main ]
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install sphinx sphinx-rtd-theme
pip install -e .
- name: Build documentation
run: |
cd docs
sphinx-build -b html . _build/html
# Copy index.html to root for GitHub Pages
cp index.html _build/html/ || true
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/_build/html
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4