正式版第一次提交(修复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: steps:
# 使用手动克隆从 Gitea 检出代码 # 使用手动克隆从 Gitea 检出代码
- name: Checkout code from Gitea - name: Checkout code with SSH
run: | run: |
echo "=== 从 Gitea 克隆代码 ===" echo "=== 配置 SSH ==="
# 配置 Git 解决网络问题 mkdir -p ~/.ssh
git config --global http.version HTTP/1.1 chmod 700 ~/.ssh
git config --global http.postBuffer 524288000 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 \ git clone --depth 1 \
https://gitea.bot.leisuretimedock.top/R3944Realms/LTDV10.git \ git@gitea.bot.leisuretimedock.top:R3944Realms/LTDV10.git \
. .
echo "=== 验证克隆结果 ===" echo "=== 验证 ==="
ls -la ls -la
echo "=== packet 目录 ==="
ls -la packet/
- name: Set executable permissions - name: Set executable permissions
run: | run: |
echo "=== 设置文件执行权限 ===" echo "=== 设置文件执行权限 ==="