Skip to content

Update docs for Brick v1.5 changes #3

Update docs for Brick v1.5 changes

Update docs for Brick v1.5 changes #3

name: Build and Deploy Jupyter Book
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Sync project dependencies
run: uv sync --locked
- name: Install SPARQL kernel
run: uv run jupyter sparqlkernel install --user
- name: Build Jupyter Book
run: |
uv run jupyter-book build .
touch _build/html/.nojekyll
- name: Prune uv cache
if: always()
run: uv cache prune --ci
- name: Configure GitHub Pages
if: github.event_name != 'pull_request'
uses: actions/configure-pages@v5
- name: Upload Pages artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v3
with:
path: _build/html
deploy:
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4