Skip to content

Commit 5f55d32

Browse files
committed
fix: deploy-vps action
1 parent 9efd762 commit 5f55d32

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/deploy-vps.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ jobs:
1616
deploy:
1717
name: Deploy to VPS
1818
runs-on: ubuntu-latest
19-
if: ${{ (github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success') && secrets.VPS_HOST != '' && secrets.VPS_USER != '' && secrets.VPS_SSH_KEY != '' }}
19+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
2020
timeout-minutes: 10
2121

2222
steps:
2323
- name: Deploy via SSH
24+
if: ${{ secrets.VPS_HOST != '' && secrets.VPS_USER != '' && secrets.VPS_SSH_KEY != '' }}
2425
uses: appleboy/ssh-action@v1.0.3
2526
with:
2627
host: ${{ secrets.VPS_HOST }}

0 commit comments

Comments
 (0)