fix(ci): 修复备份路径和 SSH key 换行问题
Deploy / deploy (push) Failing after 1m5s

This commit is contained in:
wangjia
2026-05-08 02:03:27 +08:00
parent cb68b5bdc5
commit 7c90661d1a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ jobs:
- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.EC2_SSH_KEY }}" > ~/.ssh/ec2_deploy.pem
printf '%s' "${{ secrets.EC2_SSH_KEY }}" > ~/.ssh/ec2_deploy.pem
chmod 600 ~/.ssh/ec2_deploy.pem
ssh-keyscan -H ${{ secrets.EC2_HOST }} >> ~/.ssh/known_hosts