Commit 1433109 1 parent 29cb4d3 commit 1433109 Copy full SHA for 1433109
File tree 2 files changed +37
-45
lines changed
2 files changed +37
-45
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
release :
4
4
types : [created]
5
5
jobs :
6
- build :
6
+ release-package :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- uses : actions/checkout@v4
16
16
- run : npm run release
17
17
env :
18
18
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