21 lines
474 B
YAML

name: Deploy Docs
on:
push:
branches:
- vue3
paths:
- 'docs/**/**'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@4.1.1
env:
ACCESS_TOKEN: ${{ secrets.QLIN_GITEE_TOKEN }}
BRANCH: master
FOLDER: docs/.vuepress/dist
BUILD_SCRIPT: npm install && npm run docs:build