mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 12:26:22 +00:00
24 lines
671 B
YAML
24 lines
671 B
YAML
|
name: deploy client docs
|
||
|
on: [push]
|
||
|
jobs:
|
||
|
build:
|
||
|
name: Build
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- uses: actions/setup-node@v3
|
||
|
with:
|
||
|
node-version: "18"
|
||
|
- run: yarn install
|
||
|
- name: Build
|
||
|
run: yarn doc build core/client
|
||
|
- name: copy files via ssh
|
||
|
uses: appleboy/scp-action@v0.1.4
|
||
|
with:
|
||
|
host: ${{ secrets.CN_CLIENT_HOST }}
|
||
|
username: ${{ secrets.CN_CLIENT_USERNAME }}
|
||
|
key: ${{ secrets.CN_CLIENT_KEY }}
|
||
|
port: ${{ secrets.CN_CLIENT_PORT }}
|
||
|
source: "packages/core/client/dist/*"
|
||
|
target: ${{ secrets.CN_CLIENT_TARGET }}/${{ github.ref_name }}
|