Skip to content

docs: -

docs: - #22

Workflow file for this run

name: 文档发布
on:
push:
branches:
- master
paths:
- 'docs/**'
- 'src/**'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 6.32.9
- uses: actions/setup-node@v4
with:
node-version: '16'
cache: 'pnpm'
- run: pnpm install
- name: 检测
run: npm run doctor
- name: 打包
run: npm run docs:build
- name: 部署文档
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
password: ${{ secrets.SERVER_PASS }}
source: lands-react-component-doc
target: /project-dist