File tree Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy Docs
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+
7
+ jobs :
8
+ build :
9
+
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - name : Use Node.js 14
15
+ uses : actions/setup-node@v1
16
+ with :
17
+ node-version : 14
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@v2
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 : 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
Original file line number Diff line number Diff line change 3
3
"version" : " 7.0.0" ,
4
4
"description" : " Node.js SDK for LINE Messaging API" ,
5
5
"engines" : {
6
- "node" : " >=8 "
6
+ "node" : " >=10 "
7
7
},
8
8
"main" : " dist/index.js" ,
9
9
"types" : " dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments