Skip to content

Commit

Permalink
test rsync
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadhabibi14 committed Jan 25, 2024
1 parent 87888a7 commit e9f028c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ jobs:

- name: Add known_hosts 🖥️
run: ssh-keyscan -H ${{ secrets.SERVER_IP }} >> ~/.ssh/known_hosts

- name: Upload with rsync 🔁
run: rsync --delete -avz --exclude=".git" --exclude=".github" ./ ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }}:/bacaku
uses: burnett01/[email protected]
with:
switches: -avzr --delete --exclude=".git" --exclude=".github"
path: ./
remote_path: /bacaku
remote_host: ${{ secrets.SERVER_IP }}
remote_user: ${{ secrets.SERVER_USER }}
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}

# Execute command ke VPS
- name: Execute Command ☣️
Expand Down

0 comments on commit e9f028c

Please sign in to comment.