feat: 1.0.4 #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: 文档发布 | |
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 |