Push to SFTP
ActionsTags
(2)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 | yes | SFTP username |
password | yes | 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) |
uses: AbleLincoln/[email protected]
with:
host: example.com
port: 22
username: root
password: ${{ secrets.password }}
local-dir: ./app/src/
server-dir: ./html/
- only upload modified files
- exclude files
Push to SFTP is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.