File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : pk web site backend deployment
2
2
3
3
on :
4
- workflow_run :
5
- workflows : ["pk web site backend testing"]
6
- types : [completed]
7
- branches : [main]
4
+ push :
5
+ branches :
6
+ - main # main 브랜치에 푸시될 때만 실행
8
7
9
8
jobs :
10
9
deploy :
11
10
runs-on : ubuntu-latest
12
- if : ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }}
11
+
13
12
steps :
14
13
- name : executing remote ssh commands for update
15
14
16
15
with :
17
16
host : ${{ secrets.HOSTNAME }}
18
17
username : ${{ secrets.USERNAME }}
19
18
key : ${{ secrets.KEY }}
20
- script :
19
+ script : |
21
20
cd python.or.kr && git pull
22
21
23
22
- name : executing remote ssh commands for deployment
26
25
host : ${{ secrets.HOSTNAME }}
27
26
username : ${{ secrets.USERNAME }}
28
27
key : ${{ secrets.KEY }}
29
- script :
28
+ script : |
30
29
cd python.or.kr && bash deploy_prod.sh
31
-
You can’t perform that action at this time.
0 commit comments