Skip to content

Uploads to server via SFTP on push

Notifications You must be signed in to change notification settings

AbleLincoln/push-to-sftp

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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