docs: generate ACP reference documentation from release schemas (#11770)
This commit is contained in:
@@ -275,10 +275,10 @@ jobs:
|
||||
cd ui/desktop && pnpm install --frozen-lockfile
|
||||
cd ../sdk && pnpm install --frozen-lockfile
|
||||
|
||||
- name: Check ACP Schema is Up-to-Date
|
||||
- name: Check ACP Artifacts are Up-to-Date
|
||||
run: |
|
||||
source ./bin/activate-hermit
|
||||
just check-acp-schema
|
||||
just check-acp-artifacts
|
||||
|
||||
- name: Check ACP Client SDK
|
||||
run: |
|
||||
|
||||
@@ -1,11 +1,19 @@
|
||||
name: Deploy Documentation
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'documentation/**'
|
||||
workflow_run:
|
||||
workflows:
|
||||
- Release
|
||||
types:
|
||||
- completed
|
||||
branches-ignore:
|
||||
- 'release/**'
|
||||
|
||||
concurrency:
|
||||
group: pages
|
||||
@@ -13,6 +21,9 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
if: |
|
||||
github.event_name != 'workflow_run' ||
|
||||
github.event.workflow_run.conclusion == 'success'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -25,12 +36,20 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout the branch
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
ref: main
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: Generate released ACP reference
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: ./documentation/scripts/generate-released-acp-docs.sh
|
||||
|
||||
- name: Cache Node.js modules (documentation)
|
||||
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
with:
|
||||
|
||||
@@ -8,6 +8,8 @@ on:
|
||||
- synchronize
|
||||
paths:
|
||||
- 'documentation/**'
|
||||
- 'crates/goose/acp-schema.json'
|
||||
- 'crates/goose/acp-meta.json'
|
||||
|
||||
concurrency:
|
||||
group: docs-preview-${{ github.event.pull_request.number }}
|
||||
@@ -35,6 +37,9 @@ jobs:
|
||||
cache: npm
|
||||
cache-dependency-path: documentation/package-lock.json
|
||||
|
||||
- name: Generate ACP reference
|
||||
run: node documentation/scripts/generate-acp-docs.js
|
||||
|
||||
- name: Install dependencies and build docs
|
||||
working-directory: ./documentation
|
||||
env:
|
||||
@@ -44,6 +49,7 @@ jobs:
|
||||
TARGET_PATH: /
|
||||
run: |
|
||||
npm ci
|
||||
npm test
|
||||
npm run build
|
||||
|
||||
- name: Verify docs map was generated
|
||||
|
||||
Reference in New Issue
Block a user