Skip to content

Feature/add inheritance (#343) #124

Feature/add inheritance (#343)

Feature/add inheritance (#343) #124

Workflow file for this run

name: Build GitHub Pages
on:
push:
branches:
- main
paths:
- 'docs/**'
- 'mkdocs.yml'
- 'graflo/**' # Check this path
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.9.28"
- name: Install dependencies
run: |
uv sync --extra docs --extra dev
- name: Generate ontology visualization
run: |
uv run python docs/_build/scripts/build_ontology_viz.py
uv run pre-commit run --files docs/assets/graflo-ontology-viz/*.json || true
- name: Verify committed viz assets are fresh
run: |
git diff --exit-code docs/assets/graflo-ontology-viz/
- name: Build site
run: |
uv run mkdocs build --site-dir _site
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v5
with:
path: _site
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5