[SKIP_BUILD]Update and rename docs.yml to vuepress-deploy.yml

This commit is contained in:
BruceChen 2022-11-03 09:12:36 +08:00 committed by GitHub
parent 17e1f6b805
commit 61b5d96c2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 46 deletions

27
.github/workflows/vuepress-deploy.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: docs
on:
push:
branches:
- main
paths-ignore:
- '**/__tests__/**'
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: vuepress-deploy
uses: jenkey2011/vuepress-deploy@master
env:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TARGET_REPO: MCCTeam/MCCTeam.github.io
TARGET_BRANCH: master
BUILD_SCRIPT: yarn --cwd ./docs/ && yarn --cwd ./docs/ docs:dev
BUILD_DIR: docs/.vuepress/dist
CNAME: https://mccteam.github.io