Skip to content

Commit

Permalink
Change deployment to rsync
Browse files Browse the repository at this point in the history
  • Loading branch information
wintermeyer committed Sep 18, 2023
1 parent 68cf667 commit b7f74d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/antora_build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install rsync
run: sudo apt-get install -y rsync

- name: Setup Node.js
uses: actions/setup-node@v2
with:
Expand All @@ -37,5 +40,5 @@ jobs:
echo "$DEPLOY_KEY" > deploy_key
chmod 600 deploy_key
echo "$KNOWN_HOSTS" > known_hosts
scp -i deploy_key -o UserKnownHostsFile=known_hosts -r ./build/site/* $USERNAME@$SERVER:$TARGET
rsync -avz -e 'ssh -i deploy_key -o UserKnownHostsFile=known_hosts' --delete ./build/site/ $USERNAME@$SERVER:$TARGET
rm -f deploy_key known_hosts

0 comments on commit b7f74d9

Please sign in to comment.