This action prints automatically uploads files to an SFTP server.
Required The username to access the SFTP server.
Required The hostname of the SFTP server.
Required The port of the SFTP server. Defaults to 22.
Required An SSH private key to use to access the server.
Required The path of the files to upload. Defaults to ./*
.
Required The path on the server to upload the files to. Defaults to /
.
uses: actions/SFTP-Deploy@v1
with:
username: 'root'
server: 'Your Server IP'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
local_path: './build/\*'
remote_path: '/'