Change SCP to SFTP

This commit is contained in:
2024-06-20 12:10:05 +02:00
parent 3c73bd26cf
commit d3e0e56793

View File

@@ -25,12 +25,11 @@ jobs:
npm run build npm run build
- name: Copy build directory to server - name: Copy build directory to server
uses: appleboy/scp-action@master uses: milanmk/actions-file-deployer@master
with: with:
host: ${{ secrets.SERVER_HOST }} remote-protocol: sftp
username: ${{ secrets.SERVER_USERNAME }} remote-host: ${{ secrets.SERVER_HOST }}
password: ${{ secrets.SERVER_PASSWORD }} remote-user: ${{ secrets.SERVER_USER }}
port: ${{ secrets.SERVER_PORT }} remote-password: ${{ secrets.SERVER_PASSWORD }}
source: "build/*" remote-path: ${{ secrets.SERVER_DIRECTORY }}
target: ${{ secrets.SERVER_DIRECTORY }} report-port: ${{ secrets.SERVER_PORT }}
protocol: sftp