Compare commits

..

1 Commits

Author SHA1 Message Date
kk f2a20a66cb 更新部署脚本
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Failing after 21s
2026-06-29 14:34:58 +08:00
+3 -6
View File
@@ -81,15 +81,12 @@ jobs:
env:
CLONE_SSH: ${{ vars.CLONE_SSH }}
TAG_NAME: ${{ github.event.release.tag_name }}
# 直接使用服务器上的 Gitea 仓库物理路径
LOCAL_REPO_PATH: /usr/local/bin/data/gitea-repositories/kellan/consumer-front.git
run: |
set -e
# 直接使用服务器上的 Gitea 仓库物理路径
LOCAL_REPO_PATH: $(echo "${CLONE_SSH#*:}" | tr -d '\r\n')
echo "Resolved local path: [$LOCAL_REPO_PATH]"
# 使用 --no-hardlinks 在本机通过本地路径克隆,完全避开 SSH 和所有权检查
git clone --depth=1 --branch "$TAG_NAME" --no-hardlinks "file://$LOCAL_REPO_PATH" .
git clone --depth=1 --branch "$TAG_NAME" --no-hardlinks "$LOCAL_REPO_PATH" .
###############################################
# 3. 安装依赖 & 构建 Uni-app (H5)