Skip to content

Commit

Permalink
Update deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Kacharava committed Sep 6, 2024
1 parent 0c85614 commit cd84628
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Add SSH Host Key
run: |
mkdir -p ~/.ssh
ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
- name: Deploy
run: |
rsync -avz -e "ssh -p 22" ./dist/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/www
rsync -avz -e "ssh -p 22" -o LogLevel=DEBUG3" ./dist/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/www

0 comments on commit cd84628

Please sign in to comment.