Skip to content

Commit

Permalink
CICD: enable rsync to delete remote files
Browse files Browse the repository at this point in the history
  • Loading branch information
swharden committed Jul 8, 2023
1 parent 46b505c commit e6b0ca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ jobs:
- name: 🔑 Populate Key
run: echo "${{ secrets.PRIVATE_KEY }}" > ~/.ssh/id_rsa
- name: 🚀 Upload
run: rsync --archive --stats -e 'ssh -p 18765 -o StrictHostKeyChecking=no' 'website/output/' [email protected]:~/www/swharden.com/public_html/csdv/
run: rsync --archive --delete --stats -e 'ssh -p 18765 -o StrictHostKeyChecking=no' 'website/output/' [email protected]:~/www/swharden.com/public_html/csdv/
- name: 🧹 Clear Cache
run: ssh [email protected] -p 18765 "site-tools-client domain update id=1 flush_cache=1"

0 comments on commit e6b0ca2

Please sign in to comment.