Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gurumnyang authored Nov 6, 2024
1 parent e04d5ba commit b4b7f39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

# 서버로 SSH 연결을 통한 배포
- name: Deploy to server via SSH
if: secrets.SERVER_HOST && secrets.SERVER_USER && secrets.SERVER_SSH_KEY # Secret이 존재할 때만 실행
if: ${{secrets.SERVER_HOST && secrets.SERVER_USER && secrets.SERVER_SSH_KEY}} # Secret이 존재할 때만 실행
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
Expand All @@ -30,5 +30,5 @@ jobs:
pm2 restart www
- name: Skip deployment in fork
if: secrets.SERVER_HOST == null || secrets.SERVER_USER == null || secrets.SERVER_SSH_KEY == null
if: ${{secrets.SERVER_HOST == null || secrets.SERVER_USER == null || secrets.SERVER_SSH_KEY == null}}
run: echo "Secrets not found. Skipping deployment."

0 comments on commit b4b7f39

Please sign in to comment.