Skip to content

Commit 25d47bb

Browse files
committed
Update CI
1 parent 14a92d8 commit 25d47bb

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/workflows/GHPages.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
"new": "ts-node ./tools/new-rule.ts",
2424
"docs:watch": "vuepress dev --debug docs",
2525
"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",
2926
"preversion": "npm test && npm run update && git add .",
3027
"version": "npm run eslint-fix && git add ."
3128
},

0 commit comments

Comments
 (0)