mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
25 lines
802 B
YAML
25 lines
802 B
YAML
name: Deploy Docs
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'docs/**/**'
|
|
- 'package.json'
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
|
|
run: yarn && yarn docs:build
|
|
|
|
- name: Build and Deploy
|
|
uses: JamesIves/github-pages-deploy-action@4.1.1
|
|
with:
|
|
branch: master # The branch the action should deploy to.
|
|
folder: docs/.vuepress/dist # The folder the action should deploy.
|
|
token: ${{ secrets.QLIN_GITEE_TOKEN }}
|