build: try fix rsync error
All checks were successful
Build and Deploy Angular App / build (push) Successful in 1m3s

This commit is contained in:
Polianin Nikita 2024-07-13 00:15:21 +03:00
parent 458cab9888
commit 8fa39614b7

View File

@ -41,5 +41,5 @@ jobs:
ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts
sudo apt update sudo apt update
sudo apt install rsync -y sudo apt install rsync -y
rsync -avr -p --chmod=770 ./dist/frontend/browser/ $SSH_USER@$SSH_HOST:$TARGET_DIR rsync -avr -p --chmod=770 --no-times ./dist/frontend/browser/ $SSH_USER@$SSH_HOST:$TARGET_DIR
ssh $SSH_USER@$SSH_HOST "sudo chown -R :www-data $TARGET_DIR" ssh $SSH_USER@$SSH_HOST "sudo chown -R :www-data $TARGET_DIR"