正式版第一次提交(修复Action流问题4)
Some checks failed
Deploy to Remote Server / deploy (push) Failing after 6s

This commit is contained in:
叁玖领域 2026-05-01 23:26:55 +08:00
parent d414c2510b
commit 89c1835ac0

View File

@ -18,8 +18,30 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Manual checkout (方案四)
uses: https://gitee.com/actions-mirror/checkout@v4 run: |
git config --global http.version HTTP/1.1
git config --global http.postBuffer 524288000
git config --global core.compression 0
# 如果配置了 SSH 密钥
if [ -n "${{ secrets.SSH_PRIVATE_KEY }}" ]; then
mkdir -p ~/.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
fi
git clone --depth 1 \
https://gitea.bot.leisuretimedock.top/R3944Realms/LTDV10.git \
temp_repo
shopt -s dotglob
mv temp_repo/* . 2>/dev/null || true
mv temp_repo/.[!.]* . 2>/dev/null || true
rm -rf temp_repo
ls -la
- name: Set executable permissions - name: Set executable permissions
run: | run: |