From 59508a4bf1ca5e3ba4a8d6aa0cea458d030f0e94 Mon Sep 17 00:00:00 2001 From: Erick Ruiz de Chavez Date: Sat, 7 May 2022 07:30:12 -0400 Subject: [PATCH] Update build-and-deploy.yml --- .github/workflows/build-and-deploy.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index bf5448d..815880e 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -17,12 +17,13 @@ jobs: - run: npm ci - run: npm run build --if-present - name: Deploy site - uses: wlixcc/SFTP-Deploy-Action@v1.2.2 + uses: milanmk/actions-file-deployer@master with: - username: ${{ secrets.USERNAME }} - server: ${{ secrets.HOST }} - port: ${{ secrets.PORT }} - ssh_private_key: ${{ secrets.KEY }} - local_path: './dist/*' - remote_path: '/html/sinsaludar.com' - sftp_only: true + remote-protocol: 'sftp' + remote-host: ${{ secrets.HOST }} + remote-port: ${{ secrets.PORT }} + remote-user: ${{ secrets.USERNAME }} + ssh-private-key: ${{ secrets.KEY }} + sync: full + local-path: ./dist/ + remote-path: /html/sinsaludar.com