Skip to content

Commit 681fff1

Browse files
committed
👷ci(workflow): 将文件传输方式从rsync还原为scp [deploy]
修改部署工作流中的文件传输方式,从rsync还原为scp以提高兼容性
1 parent e6a8ac2 commit 681fff1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ jobs:
5858
chmod 600 ~/.ssh/id_rsa
5959
echo -e "Host *\n\tStrictHostKeyChecking no" > ~/.ssh/config
6060
61-
# 使用rsync传输文件(替换scp的核心部分
62-
rsync -avz --delete ./dist/ "$SERVER_USER@$SERVER_IP:$DEPLOY_PATH/"
61+
# 上传构建文件到服务器(使用 scp,可替换为 rsync
62+
scp -r ./dist/* "$SERVER_USER"@"$SERVER_IP":"$DEPLOY_PATH"

0 commit comments

Comments
 (0)