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