Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.48 KB

README.md

File metadata and controls

36 lines (28 loc) · 1.48 KB

Push to SFTP

This action uploads an entire directory to your remote SFTP server on push.

Inputs

(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

Example usage

uses: AbleLincoln/[email protected]
with:
    host: example.com
    port: 22
    username: root
    password: ${{ secrets.password }}
    sourceDir: ./app/src/
    targetDir: ./html/

Feature Wishlist

  • only upload modified files
  • exclude files