From 9f1b60934ac1a4e0c0b9b16adae4c29b8500d66a Mon Sep 17 00:00:00 2001 From: Sindre Kjelsrud Date: Sun, 17 Mar 2024 12:16:36 +0100 Subject: [PATCH] :construction_worker: update CI build again.. Signed-off-by: Sindre Kjelsrud --- .github/workflows/deploy.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b3f2d85..f9632d0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,12 +27,13 @@ jobs: - name: Build Astro website run: yarn build - - name: Deploy and Reload Caddy - uses: appleboy/ssh-action@master + - name: Rsync files + uses: burnett01/rsync-deployments@5.2 with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USER }} - key: ${{ secrets.KEY }} - port: ${{ secrets.PORT }} - script: | - sh deploy.sh + switches: -avzr --delete + path: dist/ + remote_path: /var/www/kjelsrud.dev/ + remote_host: ${{ secrets.HOST }} + remote_user: ${{ secrets.USER }} + remote_key: ${{ secrets.KEY }} + remote_port: ${{ secrets.PORT }}