From 2f3ec26ea24972bcecc19ea8f0acfe5f46ba3f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=88=BD=E5=93=92=E5=93=92?= Date: Sat, 21 Mar 2026 03:03:43 +0800 Subject: [PATCH] fix: replace checkout action with git clone command --- .gitea/workflows/deploy.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 753ecb3..e7b8fdf 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -6,7 +6,8 @@ jobs: runs-on: ubuntu steps: - name: Checkout code - uses: https://gitea.com/actions/checkout@v3 + run: | + git clone --depth=1 https://sdd:zsj981107@gitea.tangledup-ai.com/quant-speed-AI/Scoring-System.git /tmp/scoring-deploy - name: Install sshpass run: apt-get install -y sshpass rsync @@ -18,7 +19,7 @@ jobs: --exclude='backend/.env' \ --exclude='backend/media/' \ -e "ssh -o StrictHostKeyChecking=no" \ - ./ quant@6.6.6.66:/home/quant/data/dev/deploy/ + /tmp/scoring-deploy/ quant@6.6.6.66:/home/quant/data/dev/deploy/ - name: Deploy on server via SSH uses: https://gitea.com/actions/appleboy-ssh-action@v1.0.3