Skip to content

Update README to include a centered logo and architecture diagram, en… #2

Update README to include a centered logo and architecture diagram, en…

Update README to include a centered logo and architecture diagram, en… #2

# Deploy WCI documentation website to GitHub Pages
# Enable: Repo Settings → Pages → Source: GitHub Actions
name: Deploy documentation website
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@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- name: Install dependencies
run: npm ci
- name: Build website (docs + demo)
run: node scripts/build-website.mjs
env:
GITHUB_REPOSITORY: ${{ github.repository }}
- name: Upload Pages artifact
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:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4