Skip to content

Commit 62fa614

Browse files
committed
run npm run apidocs in CI
1 parent 63ebbcf commit 62fa614

File tree

1 file changed

+32
-30
lines changed

1 file changed

+32
-30
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,35 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v4
14-
- name: Use Node.js 18
15-
uses: actions/setup-node@v3
16-
with:
17-
node-version: 18
18-
- name: Install Dependency
19-
run: npm ci
20-
- name: Config Internal Git
21-
run: |
22-
git config --global user.email "action@github.com"
23-
git config --global user.name "GitHub Action"
24-
- name: Clone Doc History
25-
uses: actions/checkout@v4
26-
with:
27-
ref: 'gh-pages'
28-
path: 'doc-dist'
29-
- name: Clean Doc Directory
30-
run: |
31-
cd doc-dist
32-
ls | grep -v '.git' | xargs rm -r
33-
cd ../
34-
- name: Build Docs
35-
run: export NODE_OPTIONS=--openssl-legacy-provider; npm run docs:build
36-
- name: Copy & Deploy
37-
run: |
38-
cp -r docs/.vuepress/dist/* doc-dist/
39-
cd doc-dist
40-
git add -A
41-
git commit -m 'Deploy docs'
42-
git push
13+
- uses: actions/checkout@v4
14+
- name: Use Node.js 18
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: 18
18+
- name: Install Dependency
19+
run: npm ci
20+
- name: Config Internal Git
21+
run: |
22+
git config --global user.email "action@github.com"
23+
git config --global user.name "GitHub Action"
24+
- name: Clone Doc History
25+
uses: actions/checkout@v4
26+
with:
27+
ref: 'gh-pages'
28+
path: 'doc-dist'
29+
- name: Clean Doc Directory
30+
run: |
31+
cd doc-dist
32+
ls | grep -v '.git' | xargs rm -r
33+
cd ../
34+
- name: Build API Docs
35+
run: export NODE_OPTIONS=--openssl-legacy-provider; npm run apidocs
36+
- name: Build Docs
37+
run: export NODE_OPTIONS=--openssl-legacy-provider; npm run docs:build
38+
- name: Copy & Deploy
39+
run: |
40+
cp -r docs/.vuepress/dist/* doc-dist/
41+
cd doc-dist
42+
git add -A
43+
git commit -m 'Deploy docs'
44+
git push

0 commit comments

Comments
 (0)