fix(ci): cd into the deploy clone before running auto-deploy.sh
deploy / deploy (push) Successful in 4s

The workflow has no actions/checkout, so the default workdir is empty and
'./deploy/scripts/auto-deploy.sh' was not found (exit 127).
This commit is contained in:
2026-09-21 23:49:35 +08:00
parent 438c0f4e01
commit 99547005bd
+3
View File
@@ -37,4 +37,7 @@ jobs:
- name: 构建并部署(失败自动回滚)
run: |
set -euo pipefail
# 工作流没有 actions/checkout, 默认工作目录里没有代码; 上一步已把
# 部署克隆同步到目标提交, 这里必须显式 cd 过去 (2026-09-21 实际踩到)。
cd /home/ymy/deploy/tjhlp-gitea
./deploy/scripts/auto-deploy.sh