-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (45 loc) · 1.09 KB
/
ui_deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: ui deploy
run-name: ${{ github.actor }} is Deploy 🚀
on:
push:
branches:
- main
paths-ignore:
- README.md
pull_request:
branches:
- main
paths-ignore:
- README.md
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install rsync
run: sudo apt-get install rsync -y
- name: install pnpm
uses: pnpm/[email protected]
with:
version: 8
run_install: true
- name: pnpm i
run: |
pnpm i
- name: build
run: |
cd packages
cd ui
ls
pnpm run build
- name: Deploy to Server
uses: easingthemes/[email protected]
with:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY }}
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: admin
SOURCE: /packages/ui/storybook-static/
TARGET: /home/admin/www/storybook-static