Skip to content

Split documentation into protocol spec and tooling sites #2

Split documentation into protocol spec and tooling sites

Split documentation into protocol spec and tooling sites #2

Workflow file for this run

name: Site (obsigna.dev)
on:
push:
branches: [main]
paths: [site-obsigna/**, sdk/go/**, sdk/ts/**, sdk/py/**, mcp-proxy/**, hook/**]
pull_request:
branches: [main]
paths: [site-obsigna/**]
permissions:
contents: read
defaults:
run:
working-directory: site-obsigna
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: "24"
- name: Install pnpm
run: corepack enable && corepack install
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright Chromium (for mermaid rendering)
run: pnpm exec playwright install --with-deps chromium
- name: Build site
run: pnpm build
- name: Deploy to obsigna-site gh-pages
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v4
# TODO: pin to a full commit SHA — e.g. @<sha> # v4.0.0 — for supply chain safety
# consistent with how other actions in this repo are pinned.
with:
personal_token: ${{ secrets.OBSIGNA_SITE_DEPLOY_PAT }}
external_repository: agent-receipts/obsigna-site
publish_dir: site-obsigna/dist
cname: obsigna.dev