Skip to content

Commit e1455ff

Browse files
committed
Add GitHub action to autogenerate ref docs on commut to master.
1 parent 0479103 commit e1455ff

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/docs.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: "20"
16+
- name: Cache npm
17+
uses: actions/cache@v1
18+
with:
19+
path: ~/.npm
20+
key: ${{ runner.os }}-docgen-${{ hashFiles('**/package-lock.json') }}
21+
- name: Install dependencies
22+
run: npm ci
23+
- name: Generate Reference Docs
24+
run: |
25+
npm run docgen:v1
26+
npm run docgen:v2
27+
- uses: actions/upload-artifact@v3
28+
name: Upload Docs Preview
29+
with:
30+
name: reference-docs
31+
path: |
32+
./docgen/v1/markdown/
33+
./docgen/v2/markdown/

0 commit comments

Comments
 (0)