Skip to content

Merge feature/neuromorphic-phase1: Phase 1 complete + meta-science plan #26

Merge feature/neuromorphic-phase1: Phase 1 complete + meta-science plan

Merge feature/neuromorphic-phase1: Phase 1 complete + meta-science plan #26

Workflow file for this run

name: Build and Deploy Documentation
on:
push:
branches: [ trunk ]
paths:
- 'docs/**'
- 'docs-site/**'
- '.github/workflows/build-docs.yml'
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: docs-site/package-lock.json
- name: Create Python virtual environment
run: uv venv
- name: Install Python dependencies
run: |
source .venv/bin/activate
uv pip install -r docs/requirements.txt
- name: Install Node dependencies
run: |
cd docs-site
npm ci
- name: Build unified docs site (Sphinx + Astro)
run: |
cd docs-site
npm run build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'docs-site/dist'
deploy:
# Only deploy from trunk branch
if: github.ref == 'refs/heads/trunk'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4