From cbf97e1a7e3219fa095c5f8807c92db8994d568a Mon Sep 17 00:00:00 2001 From: Arun Bahl Date: Tue, 30 Apr 2024 23:22:31 +0000 Subject: [PATCH] Replace deploy action with another one. --- .github/workflows/cd.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 680d1e8..aa0bc99 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -33,12 +33,13 @@ jobs: - name: Build run: bash build.sh - - name: Deploy with Rsync - uses: SamKirkland/web-deploy@v1 + - name: Deploy to Server + uses: easingthemes/ssh-deploy@main with: - source-path: './public/' - target-server: ${{ vars.HOST }} - ssh-port: ${{ vars.SSH_PORT }} - remote-user: ${{ vars.SSH_USER }} - private-ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} - destination-path: ${{ vars.WEBROOT }} + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + ARGS: "-rlgoDzvc -i --delete" + SOURCE: './public/' + REMOTE_HOST: ${{ vars.HOST }} + REMOTE_USER: ${{ vars.SSH_USER }} + REMOTE_PORT: ${{ vars.SSH_PORT }} + TARGET: ${{ vars.WEBROOT }}