From 061ed2b8aa27add887e07e77b2526b4a025763ca Mon Sep 17 00:00:00 2001 From: David Liu Date: Tue, 16 Apr 2024 19:35:49 -0400 Subject: [PATCH] Switch back to ssh-deploy --- .github/workflows/ci.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dbdb51f4..f450fe71 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,11 +68,12 @@ jobs: mkdir docs/build/demo cp -r demo/dist/* docs/build/demo - name: Deploy to Server - uses: burnett01/rsync-deployments@7.0.1 + uses: easingthemes/ssh-deploy@main with: - switches: -avzr --delete - path: docs/build/demo/ - remote_path: ${{ secrets.REMOTE_TARGET }} - remote_host: ${{ secrets.REMOTE_HOST }} - remote_user: ${{ secrets.REMOTE_USER }} - remote_key: ${{ secrets.SSH_PRIVATE_KEY }} + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + ARGS: "-rlgoDzvc -i --delete" + SOURCE: "docs/build/" + REMOTE_HOST: ${{ secrets.REMOTE_HOST }} + REMOTE_USER: ${{ secrets.REMOTE_USER }} + TARGET: ${{ secrets.REMOTE_TARGET }} + EXCLUDE: "/dist/, /node_modules/"