Files
Docs-Viewer/.github/workflows/main.yml
litruv 10e9f7ac2f Port Docs-Viewer to slatehtml as the docs-viewer package.
Replace the classic DOM shell with slate widgets, markdown→slate rendering, and a CI index build that uses build-docs.cjs.
2026-08-02 20:48:31 +10:00

38 lines
954 B
YAML

name: Build Documentation Index
on:
push:
branches:
- master
- slatehtml
jobs:
build:
runs-on: ubuntu-latest
if: github.actor != 'github-actions[bot]'
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Build docs index
run: node build-docs.cjs
- name: Check for changes
id: check_changes
run: |
git diff --quiet index.json || echo "changes=true" >> $GITHUB_OUTPUT
- name: Commit and push if changed
if: steps.check_changes.outputs.changes == 'true'
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add index.json
git commit -m "Update documentation index"
git push