Skip to content

Merged PR 1269: [fix]: Add hook for model-specific constraints #28

Merged PR 1269: [fix]: Add hook for model-specific constraints

Merged PR 1269: [fix]: Add hook for model-specific constraints #28

Workflow file for this run

name: Deploy Sphinx Docs to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: github-pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[docs]
- name: Build Sphinx Documentation
run: |
# Build the site directly into docs/ so Pages serves docs/index.html
sphinx-build -b html docs/source docs/
- name: Disable Jekyll
run: touch docs/.nojekyll
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v5
with:
path: ./docs
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5