chore: update vue and vuepress version, and fix ssr error #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: vue-ellipsis-component-doc | |
on: | |
push: | |
branches: | |
- master | |
- tongji | |
paths-ignore: # 下列文件的变更不触发部署 | |
- packages/* | |
- public/* | |
- test/* | |
- demo/* | |
- build/* | |
- README.md | |
- LICENSE | |
- .browserslistrc | |
- .gitignore | |
- babel.config.js | |
- tsconfig.json | |
- .eslintrc.js | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout # 1. 将仓库内master分支的内容下载到工作目录 | |
uses: actions/checkout@v2 | |
- name: Install # 2. 安装依赖 | |
run: yarn | |
- name: Build # 3. 打包 | |
run: yarn docs:build | |
- name: Deploy to Server | |
uses: easingthemes/[email protected] | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.KEY }} | |
ARGS: '-avz --delete --exclude *.js.map' | |
SOURCE: './docs/.vuepress/dist' | |
REMOTE_HOST: ${{ secrets.HOST }} | |
REMOTE_USER: ${{ secrets.USER }} | |
TARGET: ${{ secrets.PATH }} |