CI: Prefer rsync over scp to preserve symlinks

This commit is contained in:
Alessandro Pignotti 2024-10-14 21:38:12 +02:00
parent 5bcdeffb84
commit 1ee73b270a

View file

@ -24,7 +24,7 @@ jobs:
command: |
git clone --branch $CIRCLE_BRANCH --single-branch git@github.com:leaningtech/webvm.git
- run:
name: Publish NPM packages
name: Build WebVM
command: |
cd webvm/
npm install
@ -32,7 +32,7 @@ jobs:
- run:
name: Deploy webvm
command: |
scp -rP $SSH_PORT webvm/build/* leaningtech@${SSH_HOST}:/srv/web/webvm_next/
rsync -avz -e "ssh -p ${SSH_PORT}" webvm/build/ leaningtech@${SSH_HOST}:/srv/web/webvm_next/
workflows:
deploy: