正式版第一次提交(修复Action流问题10)
Some checks failed
Deploy to Remote Server / deploy (push) Has been cancelled

This commit is contained in:
叁玖领域 2026-05-01 23:46:24 +08:00
parent ae2cf090f5
commit bf31d7b5cb

View File

@ -21,22 +21,24 @@ jobs:
steps:
# 使用手动克隆从 Gitea 检出代码
- name: Checkout code from Gitea
- name: Checkout code with SSH
run: |
echo "=== 从 Gitea 克隆代码 ==="
# 配置 Git 解决网络问题
git config --global http.version HTTP/1.1
git config --global http.postBuffer 524288000
echo "=== 配置 SSH ==="
mkdir -p ~/.ssh
chmod 700 ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
# 克隆代码
# 添加主机密钥
ssh-keyscan -p 22 gitea.bot.leisuretimedock.top >> ~/.ssh/known_hosts 2>/dev/null
echo "=== 使用 SSH 克隆代码 ==="
git clone --depth 1 \
https://gitea.bot.leisuretimedock.top/R3944Realms/LTDV10.git \
git@gitea.bot.leisuretimedock.top:R3944Realms/LTDV10.git \
.
echo "=== 验证克隆结果 ==="
echo "=== 验证 ==="
ls -la
echo "=== packet 目录 ==="
ls -la packet/
- name: Set executable permissions
run: |
echo "=== 设置文件执行权限 ==="