Change SCP to SFTP

This commit is contained in:
2024-06-20 12:05:30 +02:00
parent 6e7b10c4cc
commit d59e259628

View File

@@ -25,11 +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: easingthemes/gh-action-sftp@master
with: with:
host: ${{ secrets.SERVER_HOST }} host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }} username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }} password: ${{ secrets.SERVER_PASSWORD }}
port: ${{ secrets.SERVER_PORT }} port: ${{ secrets.SERVER_PORT }}
source: "build/*" local: "build/*"
target: ${{ secrets.SERVER_DIRECTORY }} remote: ${{ secrets.SERVER_DIRECTORY }}