Skip to content

Commit d369c4f

Browse files
🔧 enhance deployment workflow for improved connection stability during file transfer
1 parent 39bae6a commit d369c4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Transfer files to server
4343
run: |
4444
rsync -avz --delete \
45-
-e "ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" \
45+
-e "ssh -i ~/.ssh/id_rsa -o ServerAliveInterval=60 -o ServerAliveCountMax=10 -o StrictHostKeyChecking=no" \
4646
./ $SSH_USER@$SSH_HOST:$SSH_DIR/${GITHUB_REPOSITORY##*/}/
4747
4848
# Step 5: Deploy on server

0 commit comments

Comments
 (0)