File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : GHPages
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+
7
+ jobs :
8
+ deploy-docs :
9
+ runs-on : macos-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - uses : actions/setup-node@v1
13
+ - name : Install Packages
14
+ run : npm install
15
+ - name : Build docs
16
+ run : npm run docs:build
17
+ - name : Deploy
18
+ uses : peaceiris/actions-gh-pages@v3
19
+ with :
20
+ github_token : ${{ secrets.GITHUB_TOKEN }}
21
+ publish_dir : ./docs/.vuepress/dist
22
+ force_orphan : true
Original file line number Diff line number Diff line change 23
23
"new" : " ts-node ./tools/new-rule.ts" ,
24
24
"docs:watch" : " vuepress dev --debug docs" ,
25
25
"docs:build" : " npm run build && vuepress build docs --no-cache" ,
26
- "docs-deploysetup" : " npm run docs:build && npm run docs-deploysetup:clean && npm run docs-deploysetup:copy" ,
27
- "docs-deploysetup:clean" : " rimraf assets" ,
28
- "docs-deploysetup:copy" : " npx cpx \" docs/\\ .vuepress/dist/**\" . -u" ,
29
26
"preversion" : " npm test && npm run update && git add ." ,
30
27
"version" : " npm run eslint-fix && git add ."
31
28
},
You can’t perform that action at this time.
0 commit comments