fix: replace checkout action with git clone command
Some checks failed
Deploy to Server / deploy (push) Failing after 1s
Some checks failed
Deploy to Server / deploy (push) Failing after 1s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user