fix: replace checkout action with git clone command
Some checks failed
Deploy to Server / deploy (push) Failing after 1s

This commit is contained in:
爽哒哒
2026-03-21 03:03:43 +08:00
parent 77f0ed802f
commit 2f3ec26ea2

View File

@@ -6,7 +6,8 @@ jobs:
runs-on: ubuntu runs-on: ubuntu
steps: steps:
- name: Checkout code - 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 - name: Install sshpass
run: apt-get install -y sshpass rsync run: apt-get install -y sshpass rsync
@@ -18,7 +19,7 @@ jobs:
--exclude='backend/.env' \ --exclude='backend/.env' \
--exclude='backend/media/' \ --exclude='backend/media/' \
-e "ssh -o StrictHostKeyChecking=no" \ -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 - name: Deploy on server via SSH
uses: https://gitea.com/actions/appleboy-ssh-action@v1.0.3 uses: https://gitea.com/actions/appleboy-ssh-action@v1.0.3