From 0baa102db0eadce6dca87e771059817a35497f01 Mon Sep 17 00:00:00 2001 From: Raffaele Viglianti Date: Wed, 10 Jul 2024 13:36:14 -0400 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7f2bc402d7..de872f21f8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -42,10 +42,10 @@ jobs: mkdir -p ~/.ssh ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - rsync -avz --delete --quiet ./public/ $SSH_USER@$SSH_HOST:$SSH_REMOTE_PATH + chmod -R 400 ~/.ssh + rsync -avz --delete --quiet -e "ssh -i ~/.ssh/id_rsa" ./public/ $SSH_USER@$SSH_HOST:$SSH_REMOTE_PATH - name: Clean up run: | rm -rf ./public/ - rm ~/.ssh/id_rsa \ No newline at end of file + rm ~/.ssh/id_rsa