Skip to content

Merge pull request #975 from nteract/scale-aware #245

Merge pull request #975 from nteract/scale-aware

Merge pull request #975 from nteract/scale-aware #245

Workflow file for this run

name: Deploy Docs
on:
push:
branches: [main]
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: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22.x
cache: "npm"
- name: Install dependencies
run: npm install --legacy-peer-deps
- name: Build library and docs
run: npm run website:build
- name: Add 404.html for SPA routing
run: cp docs/build/index.html docs/build/404.html
- name: Add AI-readable docs (llms.txt, CLAUDE.md, schema)
run: |
cp CLAUDE.md docs/build/CLAUDE.md
cp CLAUDE.md docs/build/llms-full.txt
cp docs/public/llms.txt docs/build/llms.txt
cp ai/schema.json docs/build/schema.json
cp ai/system-prompt.md docs/build/api-reference.md
cp ai/examples.md docs/build/examples.md
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
path: docs/build
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@v4