update workflow #4
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: Vuepress Document Deploy | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'doc-source/**' | |
- '.github/workflows/docs-deploy.yml' | |
jobs: | |
vuepress-doc-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone master branch | |
uses: actions/checkout@v3.3.0 | |
- name: vuepress-deploy | |
uses: jenkey2011/vuepress-deploy@master | |
env: | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
TARGET_REPO: ${{ github.repository }} | |
TARGET_BRANCH: docs | |
BUILD_SCRIPT: | | |
git config --global --add safe.directory "*" \ | |
&& cd doc-source && npm install --global yarn \ | |
&& yarn -i && yarn docs:build | |
BUILD_DIR: ../docs |