You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Push to SFTP
v2.0
This action uploads an entire directory to your remote SFTP server on push.
(all default to an empty string)
Name | Required? | Description |
---|---|---|
host | yes | SFTP server |
port | yes | SFTP server port |
username | no | SFTP username |
password | no | SFTP password |
sourceDir | yes | Source directory to upload from (will upload all files in this directory) |
targetDir | yes | Remote directory to upload to (WARNING: overwrites ALL files in this directory) |
privateKey | no | SSH key to authenticate with |
passphrase | no | Passphrase for an encrypted private key |
uses: AbleLincoln/[email protected]
with:
host: example.com
port: 22
username: root
password: ${{ secrets.password }}
sourceDir: ./app/src/
targetDir: ./html/
- only upload modified files
- exclude files