From 8741a7793428c6f0bef031e378a5c54ec64450ac Mon Sep 17 00:00:00 2001 From: Erick Ruiz de Chavez Date: Fri, 29 Apr 2022 15:07:44 -0400 Subject: [PATCH] Update build-and-deploy.yml --- .github/workflows/build-and-deploy.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 764c356..ea06f37 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -17,11 +17,10 @@ jobs: - run: npm ci - run: npm run build --if-present - name: Deploy site - uses: appleboy/scp-action@v0.1.1 + uses: wlixcc/SFTP-Deploy-Action@v1.2.2 with: - host: ${{ secrets.HOST }} - port: ${{ secrets.PORT }} username: ${{ secrets.USERNAME }} - key: ${{ secrets.KEY }} - source: index.html,styles.css - target: ${{ secrets.TARGET }} + server: ${{ secrets.HOST }} + port: ${{ secrets.PORT }} + ssh_private_key: ${{ secrets.KEY }} + remote_path: ${{ secrets.TARGET }}