build: sync file instead copy
Some checks failed
Build and Deploy Angular App / build (push) Failing after 37s

Signed-off-by: Polianin Nikita <wesser@noreply.git.winsomnia.net>
This commit is contained in:
Polianin Nikita 2024-07-04 10:28:35 +03:00
parent b5cc4cd06f
commit 28804e6f06

View File

@ -39,5 +39,6 @@ jobs:
run: |
mkdir -p ~/.ssh
ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts
scp -r ./dist/frontend/browser/* $SSH_USER@$SSH_HOST:$TARGET_DIR
rsync -av ./dist/frontend/browser/ $SSH_USER@$SSH_HOST:$TARGET_DIR
ssh $SSH_USER@$SSH_HOST "sudo chmod 770 -R www-data:www-data $TARGET_DIR"
ssh $SSH_USER@$SSH_HOST "sudo chown -R www-data:www-data $TARGET_DIR"