From 923ac61233c2171790ae84e66d8a28ee5c49e603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Harper?= Date: Sat, 16 Nov 2024 12:09:57 -0700 Subject: [PATCH] update deploy GitHub workflow to use rsync instead --- .github/workflows/deploy.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 959e786..377389b 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -17,10 +17,11 @@ jobs: run: yarn build - name: Copy site to DigitalOcean - uses: garygrossgarten/github-action-scp@0.9.0 + uses: burnett01/rsync-deployments@7.0.1 with: - local: public - remote: ${{ secrets.SSH_PATH }} - host: ${{ secrets.SSH_HOST }} - username: ${{ secrets.SSH_USERNAME }} - privateKey: ${{ secrets.SSH_KEY }} + switches: --delete --human-readable --ignore-errors --progress --recursive --stats --times --verbose --dry-run + path: public/ + remote_path: ${{ secrets.SSH_PATH }} + remote_host: ${{ secrets.SSH_HOST }} + remote_user: ${{ secrets.SSH_USERNAME }} + remote_key: ${{ secrets.SSH_KEY }}