Skip to content

Commit 46ae5a4

Browse files
authored
ci: docs build (#2382)
1 parent b81b595 commit 46ae5a4

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,52 @@ jobs:
2727
steps:
2828
- name: Checkout
2929
uses: actions/checkout@v4
30+
31+
- name: Setup Node.js
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: "20"
35+
36+
- name: Setup pnpm
37+
uses: pnpm/action-setup@v4
38+
with:
39+
version: 10.11.0
40+
41+
- name: Install dependencies
42+
run: |
43+
cd js
44+
pnpm install --frozen-lockfile
45+
46+
- name: Prebuild packages
47+
run: |
48+
cd js
49+
pnpm run -r prebuild
50+
51+
- name: Build packages
52+
run: |
53+
cd js
54+
pnpm run -r build
55+
3056
- name: Setup Pages
3157
uses: actions/configure-pages@v5
58+
3259
- name: Build with Jekyll
3360
uses: actions/jekyll-build-pages@v1
3461
with:
3562
source: ./
3663
destination: ./_site
64+
65+
- name: Build TypeDoc documentation
66+
run: |
67+
cd js
68+
pnpm run docs:generate
69+
70+
- name: Copy TypeDoc to js subpath
71+
run: |
72+
sudo chown -R $USER:$USER _site
73+
mkdir -p _site/js
74+
cp -r js/docs/* _site/js/
75+
3776
- name: Upload artifact
3877
uses: actions/upload-pages-artifact@v3
3978

_config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Jekyll configuration for GitHub Pages
2+
exclude:
3+
- node_modules
4+
- js/node_modules
5+
- js/packages/*/node_modules
6+
- js/examples/*/node_modules
7+
- js/examples/*/backend/node_modules
8+
- js/examples/*/frontend/node_modules
9+
- .git
10+
- .github
11+
- Gemfile
12+
- Gemfile.lock
13+
- README.md
14+
- LICENSE
15+
- .gitignore
16+
- .nojekyll

0 commit comments

Comments
 (0)