mirror of
https://github.com/hazemKrimi/touch-programming.git
synced 2026-05-01 18:20:26 +00:00
Try using rsync instead of scp
This commit is contained in:
@@ -40,6 +40,14 @@ jobs:
|
|||||||
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
|
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
|
|
||||||
- name: Deploy to VPS
|
- name: Deploy to VPS
|
||||||
|
env:
|
||||||
|
SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
run: |
|
run: |
|
||||||
scp -r client/build deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/public
|
mkdir -p ~/.ssh
|
||||||
scp server/executable deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/api
|
echo "$SSH_KEY" > ~/.ssh/id_deploy
|
||||||
|
chmod 600 ~/.ssh/id_deploy
|
||||||
|
ssh-keyscan -H hazemkrimi.tech >> ~/.ssh/known_hosts
|
||||||
|
rsync -avz --delete client/build deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/public
|
||||||
|
rsync -avz --delete server/executable deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/api
|
||||||
|
# scp -r client/build deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/public
|
||||||
|
# scp server/executable deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/api
|
||||||
|
|||||||
Reference in New Issue
Block a user