fix: remove explicit SSH config path from rsync to fix tilde expansion issue in cn-landing deploy
The rsync `-e "ssh -F ~/.ssh/config"` fails because `~` inside double quotes is not expanded by bash. rsync passes the literal `~/.ssh/config` to ssh, which cannot resolve it. Removing `-e` lets rsync use the default ssh, which reads `$HOME/.ssh/config` automatically. Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/45d1241e-8f50-40ac-898d-54e2a92b3300 Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
This commit is contained in:
parent
d68c59a366
commit
815f8f5f12
|
|
@ -112,7 +112,6 @@ jobs:
|
||||||
- name: 📦 同步落地页文件
|
- name: 📦 同步落地页文件
|
||||||
run: |
|
run: |
|
||||||
rsync -avz --delete \
|
rsync -avz --delete \
|
||||||
-e "ssh -F ~/.ssh/config" \
|
|
||||||
server/sites/cn-landing/ \
|
server/sites/cn-landing/ \
|
||||||
cn-target:/opt/zhuyuan-cn/sites/cn-landing/
|
cn-target:/opt/zhuyuan-cn/sites/cn-landing/
|
||||||
echo "✅ 落地页已同步到 /opt/zhuyuan-cn/sites/cn-landing/"
|
echo "✅ 落地页已同步到 /opt/zhuyuan-cn/sites/cn-landing/"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue