-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (35 loc) · 1.13 KB
/
flow.yaml
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
name: YouNote build
on:
push:
branches:
- main
- dev
- vls-36
jobs:
you-note-deploy:
name: deploy YouNote
runs-on: ubuntu-latest
steps:
- name: Pull code
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
script: cd /home/${{ secrets.USERNAME }}/frontend/2024_1_scratch_senior_devs && git pull
- name: Build frontend
uses: appleboy/ssh-action@master
with:
timeout: 10m
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
script: cd /home/${{ secrets.USERNAME }}/frontend/2024_1_scratch_senior_devs && sh ./build.sh
- name: Build frontend
uses: appleboy/ssh-action@master
with:
timeout: 10m
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
script: cd /home/${{ secrets.USERNAME }}/frontend/2024_1_scratch_senior_devs && node ./server/index.js &