diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 98fc678..6a07184 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} @@ -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."