File tree Expand file tree Collapse file tree 3 files changed +43
-51
lines changed Expand file tree Collapse file tree 3 files changed +43
-51
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33 release :
44 types : [created]
55jobs :
6- build :
6+ release-package :
77 runs-on : ubuntu-latest
88 steps :
99 - uses : actions/checkout@v4
1616 - run : npm run release
1717 env :
1818 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
19+
20+ deploy-docs :
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/checkout@v4
24+ - name : Use Node.js 18
25+ uses : actions/setup-node@v3
26+ with :
27+ node-version : 18
28+ - name : Install Dependency
29+ run : npm ci
30+ - name : Config Internal Git
31+ run : |
32+ git config --global user.email "action@github.com"
33+ git config --global user.name "GitHub Action"
34+ - name : Clone Doc History
35+ uses : actions/checkout@v4
36+ with :
37+ ref : ' gh-pages'
38+ path : ' doc-dist'
39+ - name : Clean Doc Directory
40+ run : |
41+ cd doc-dist
42+ ls | grep -v '.git' | xargs rm -r
43+ cd ../
44+ - name : Build API Docs
45+ run : export NODE_OPTIONS=--openssl-legacy-provider; npm run apidocs
46+ - name : Build Docs
47+ run : export NODE_OPTIONS=--openssl-legacy-provider; npm run docs:build
48+ - name : Copy & Deploy
49+ run : |
50+ cp -r docs/.vuepress/dist/* doc-dist/
51+ cd doc-dist
52+ git add -A
53+ git commit -m 'Deploy docs'
54+ git push
You can’t perform that action at this time.
0 commit comments