a6
All checks were successful
Gitea Actions Demo / build-and-deploy-to-local-server (push) Successful in 1m56s
Gitea Actions Demo / deploy-to-remote-server (push) Successful in 2s

This commit is contained in:
2025-06-11 20:39:32 +08:00
parent 69db5f2b9a
commit 677825cffc
2 changed files with 3 additions and 3 deletions

View File

@ -35,5 +35,5 @@ jobs:
steps:
- name: Deploy to remote server
run: |
ssh -i /home/.ssh/id_rsa root@1970666.xyz "rm -rf /root/docker/docker-nginx/html/blog"
scp -i /home/.ssh/id_rsa -r /workspace/docker/docker-nginx/html/blog root@1970666.xyz:/root/docker/docker-nginx/html/
ssh -i /home/.ssh/id_rsa root@1970666.xyz "rm -rf /workspace/docker/docker-nginx/html/blog"
scp -i /home/.ssh/id_rsa -r /workspace/docker/docker-nginx/html/blog root@1970666.xyz:/workspace/docker/docker-nginx/html/