Commit 0775d83 1 parent b4b7f39 commit 0775d83 Copy full SHA for 0775d83
File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 17
17
18
18
# 서버로 SSH 연결을 통한 배포
19
19
- name : Deploy to server via SSH
20
- if : ${{secrets.SERVER_HOST && secrets.SERVER_USER && secrets.SERVER_SSH_KEY}} # Secret이 존재할 때만 실행
20
+ env :
21
+ SERVER_HOST : ${{secrets.SERVER_HOST}}
22
+ SERVER_USER : ${{secrets.SERVER_USER}}
23
+ SERVER_SSH_KEY : ${{secrets.SERVER_SSH_KEY}}
24
+ if : ${{SERVER_HOST && SERVER_USER && SERVER_SSH_KEY}} # Secret이 존재할 때만 실행
21
25
uses : appleboy/ssh-action@master
22
26
with :
23
27
host : ${{ secrets.SERVER_HOST }}
30
34
pm2 restart www
31
35
32
36
- name : Skip deployment in fork
37
+ env :
38
+ SERVER_HOST : ${{secrets.SERVER_HOST}}
39
+ SERVER_USER : ${{secrets.SERVER_USER}}
40
+ SERVER_SSH_KEY : ${{secrets.SERVER_SSH_KEY}}
33
41
if : ${{secrets.SERVER_HOST == null || secrets.SERVER_USER == null || secrets.SERVER_SSH_KEY == null}}
34
42
run : echo "Secrets not found. Skipping deployment."
You can’t perform that action at this time.
0 commit comments