Skip to content

Commit 7b5dd69

Browse files
authored
Merge pull request #53 from plotday/sdk-docs
Agent builder docs
2 parents b26de62 + 262d280 commit 7b5dd69

25 files changed

+4758
-435
lines changed

.changeset/open-yaks-fall.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@plotday/sdk": patch
3+
---
4+
5+
Added: Docs for build.plot.day
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Deploy SDK Docs
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "sdk/**"
8+
- ".github/workflows/deploy-sdk-docs.yml"
9+
10+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
17+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: false
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
name: Build SDK Documentation
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
with:
30+
submodules: recursive
31+
32+
- name: Install pnpm
33+
uses: pnpm/action-setup@v4
34+
35+
- name: Setup Node.js
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: 22
39+
cache: "pnpm"
40+
41+
- name: Install SDK dependencies
42+
run: pnpm install --frozen-lockfile --filter=./sdk
43+
44+
- name: Build SDK
45+
run: cd sdk && pnpm build
46+
47+
- name: Setup Pages
48+
uses: actions/configure-pages@v4
49+
50+
- name: Upload artifact
51+
uses: actions/upload-pages-artifact@v3
52+
with:
53+
path: "sdk/dist/docs"
54+
55+
deploy:
56+
environment:
57+
name: github-pages
58+
url: ${{ steps.deployment.outputs.page_url }}
59+
runs-on: ubuntu-latest
60+
name: Deploy to GitHub Pages
61+
needs: build
62+
steps:
63+
- name: Deploy to GitHub Pages
64+
id: deployment
65+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)