ci: use rsync instead of scp
This commit is contained in:
@@ -53,7 +53,8 @@ jobs:
|
||||
chmod 600 ~/.ssh/known_hosts
|
||||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
scp -r -P 44 artifact owofannouncements@foxthesystem.space:~/server
|
||||
# scp -r -P 44 artifact owofannouncements@foxthesystem.space:~/server
|
||||
rsync -avzxh --delete -e ssh artifact rsync://owofannouncements@foxthesystem.space:44/opt/owofannouncements/server
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
SSH_KEYSCAN: ${{ secrets.SSH_KEYSCAN }}
|
||||
Reference in New Issue
Block a user