Change SFTP CI

This commit is contained in:
2024-06-20 12:19:50 +02:00
parent f5584b1c97
commit 69f309a4f4

View File

@@ -27,11 +27,12 @@ jobs:
npm run build npm run build
- name: Copy build directory to server - name: Copy build directory to server
uses: milanmk/actions-file-deployer@master uses: Dylan700/sftp-upload-action@v1.2.3
with: with:
remote-protocol: sftp server: ${{ secrets.SERVER_HOST }}
remote-host: ${{ secrets.SERVER_HOST }} username: ${{ secrets.SERVER_SERNAME }}
remote-user: ${{ secrets.SERVER_USERNAME }} password: ${{ secrets.SERVER_PASSWORD }}
remote-password: ${{ secrets.SERVER_PASSWORD }} port: ${{ secrets.SERVER_PORT }}
remote-path: ${{ secrets.SERVER_DIRECTORY }} uploads: |
report-port: ${{ secrets.SERVER_PORT }} ./build => /webroot/
delete: true