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 : ubuntu-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 1919 "new" : " ts-node ./tools/new-rule.ts" ,
2020 "docs:watch" : " vuepress dev --debug docs" ,
2121 "docs:build" : " npm run build && vuepress build docs --no-cache" ,
22- "docs-deploysetup" : " npm run docs:build && npm run docs-deploysetup:clean && npm run docs-deploysetup:copy" ,
23- "docs-deploysetup:clean" : " rimraf assets" ,
24- "docs-deploysetup:copy" : " cpx \" docs/\\ .vuepress/dist/**\" . -u" ,
2522 "preversion" : " npm test && npm run update && git add ." ,
2623 "version" : " npm run lint -- --fix && git add ." ,
2724 "updatefixture" : " cross-env UPDATE_FIXTURE=\" true\" npm run test:base"
You can’t perform that action at this time.
0 commit comments