Skip to content

Merge pull request #52 from taixw2/patch-1 #29

Merge pull request #52 from taixw2/patch-1

Merge pull request #52 from taixw2/patch-1 #29

Workflow file for this run

name: Build and Deploy Doc
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
ref: master
- name: install node
uses: actions/setup-node@v1
with:
node-version: 12.x
registry-url: https://registry.npmjs.org/
- name: Duild
run: |
npm install -g yarn
cd docs
yarn
yarn run docs:build
pwd
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./docs/docs/.vuepress/dist
force_orphan: true
commit_message: ':memo: deploy docs'