修改同步文件时的参数
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 31s

This commit is contained in:
kk
2026-06-29 15:05:45 +08:00
parent ff544b9766
commit 6e4c831870
+5 -4
View File
@@ -124,11 +124,12 @@ jobs:
exit 1 exit 1
fi fi
# 确保构建产物可读
chmod -R a+r "$H5_SOURCE_DIR"
# 使用 rsync 同步文件 # 使用 rsync 同步文件
# 修正: 将 -e 参数移到前面 rsync -rltvz --delete \
rsync -rltzv --delete \ --no-perms --no-times --no-owner --no-group \
--no-owner --no-group \
--chmod=Du=rwx,Dgo=rx,Fu=rw,Fgo=r \
-e "ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no" \ -e "ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no" \
"$H5_SOURCE_DIR/" \ "$H5_SOURCE_DIR/" \
"root@${TARGET}:${WEB_ROOT}/" "root@${TARGET}:${WEB_ROOT}/"