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 }}