build: try set group owner
Some checks failed
Build and Deploy Angular App / build (push) Failing after 46s

Signed-off-by: Polianin Nikita <wesser@noreply.git.winsomnia.net>
This commit is contained in:
Polianin Nikita 2024-10-25 02:55:53 +03:00
parent 924c75ea79
commit e92927addb

View File

@ -41,5 +41,4 @@ 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 --no-times --delete ./dist/frontend/browser/ $SSH_USER@$SSH_HOST:$TARGET_DIR rsync -avr -p --chmod=660 --chown=$SSH_USER:www-data --no-times --delete ./dist/frontend/browser/ $SSH_USER@$SSH_HOST:$TARGET_DIR
ssh $SSH_USER@$SSH_HOST "chown -R :www-data $TARGET_DIR"