Skip to content

Update docs for Codeg 0.23.1 #11

Update docs for Codeg 0.23.1

Update docs for Codeg 0.23.1 #11

Workflow file for this run

name: Deploy Docs
on:
# Deploy on every push to main; build-only on PRs to catch breakage before merge.
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# One production deploy at a time; never cancel an in-progress one mid-publish.
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # full history → real VitePress "last updated" timestamps
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9 # matches pnpm-lock.yaml (lockfileVersion 9.0)
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm docs:build
- name: Disable Jekyll on the built site
run: touch .vitepress/dist/.nojekyll
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: .vitepress/dist
deploy:
# PRs stop after build; only main actually publishes.
needs: build
if: github.ref == 'refs/heads/main'
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