Files
archie/.github/workflows/docs.yml
T
sam 69640b5216 docs: consolidate into a single docs/ tree
Fold the old docs/ into the VitePress site and rename docs-2 -> docs.
The 12 architecture PRDs become first-class pages at docs/architecture/
with sidebar nav, rather than being buried under an archive path.
Historical material stays at docs/archive/. Rewrites every docs-2 and
docs/prds/architecture reference across the repo. Site builds clean.
2026-07-29 03:17:42 +10:00

69 lines
1.5 KiB
YAML

name: Deploy docs
on:
push:
branches: [main]
paths:
- "docs/**"
- "tools/**"
- ".github/workflows/docs.yml"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # full history - VitePress lastUpdated needs it
- uses: pnpm/action-setup@v6
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: latest
cache: pnpm
cache-dependency-path: docs/pnpm-lock.yaml
- uses: actions/cache@v4
with:
path: docs/.vitepress/cache
key: ${{ runner.os }}-vitepress-${{ hashFiles('docs/**', 'docs/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-vitepress-
- name: Install dependencies
working-directory: docs
run: pnpm install --frozen-lockfile
- name: Build docs site
working-directory: docs
run: pnpm build
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4