Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Push to SFTP

Actions
Push files to your server via SFTP (no SSH needed!)
v1.2
Star (9)

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 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)

Example usage

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

Feature Wishlist

  • 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.

About

Push files to your server via SFTP (no SSH needed!)
v1.2

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.