Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
raffazizzi authored Jul 10, 2024
1 parent 4c98eb9 commit 0baa102
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
rm ~/.ssh/id_rsa

0 comments on commit 0baa102

Please sign in to comment.