Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Nov 13, 2020
1 parent 2eb8c4c commit 4c10188
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/GHPages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: GHPages

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
deploy-docs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Install Packages
run: npm install
- name: Build docs
run: npm run docs:build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vuepress/dist
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
"predocs:watch": "npm run build:ts",
"docs:watch": "vuepress dev --debug docs",
"docs:build": "npm run build:ts && vuepress build docs --no-cache",
"docs-deploysetup": "npm run docs:build && npm run docs-deploysetup:clean && npm run docs-deploysetup:copy",
"docs-deploysetup:clean": "rimraf docs/assets",
"docs-deploysetup:copy": "npx cpx \"docs/\\.vuepress/dist/**\" \"docs\" -u",
"preversion": "npm test && npm run update && git add .",
"version": "npm run eslint-fix && git add .",
"update-fixtures": "ts-node ./tools/update-fixtures.ts && npm run eslint-fix"
Expand Down

0 comments on commit 4c10188

Please sign in to comment.