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
- name: Copy build directory to server
uses: appleboy/scp-action@master
uses: milanmk/actions-file-deployer@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
port: ${{ secrets.SERVER_PORT }}
source: "build/*"
target: ${{ secrets.SERVER_DIRECTORY }}
protocol: sftp
remote-protocol: sftp
remote-host: ${{ secrets.SERVER_HOST }}
remote-user: ${{ secrets.SERVER_USER }}
remote-password: ${{ secrets.SERVER_PASSWORD }}
remote-path: ${{ secrets.SERVER_DIRECTORY }}
report-port: ${{ secrets.SERVER_PORT }}