Skip to content

Commit 44a6c80

Browse files
committed
ci: sync docs bundle to rivet-dev/website on merge
1 parent c8021e8 commit 44a6c80

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/docs-sync.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Sync docs
2+
3+
# Docs live here; rivet.dev publishes them. On merge to main this copies the
4+
# docs/ bundle into the website's vendor/agentos and opens a PR there, which is
5+
# also what triggers the site rebuild.
6+
#
7+
# examples/ travels with the bundle because agentOS docs embed snippets from it
8+
# by repo-root-relative path, and Dynamic Apps docs resolve their snippets here
9+
# too via snippetFrom in the website's product-metadata.ts.
10+
on:
11+
push:
12+
branches: [main]
13+
paths: ["docs/**", "examples/**"]
14+
workflow_dispatch:
15+
16+
jobs:
17+
sync:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: rivet-dev/website/.github/actions/sync-docs@main
22+
with:
23+
product: agentos
24+
token: ${{ secrets.RIVET_WEBSITE_TOKEN }}
25+
extra-paths: examples

0 commit comments

Comments
 (0)