diff --git a/.gitea/workflows/delopy.yml b/.gitea/workflows/delopy.yml index eed988c..e67e0c8 100644 --- a/.gitea/workflows/delopy.yml +++ b/.gitea/workflows/delopy.yml @@ -18,6 +18,16 @@ jobs: runs-on: ubuntu-latest steps: + # ✅ 新增:配置 Git 以解决 HTTP/2 问题 + - name: Configure Git for stable cloning + run: | + git config --global http.version HTTP/1.1 + git config --global http.postBuffer 524288000 + git config --global http.lowSpeedLimit 0 + git config --global http.lowSpeedTime 999999 + git config --global core.compression 0 + echo "✅ Git 配置已优化" + - name: Checkout code uses: https://gitea.com/actions/checkout@v4