Skip to content
upload-cloud

GitHub Action

SFTP uploader w/options

1.3 Pre-release

SFTP uploader w/options

upload-cloud

SFTP uploader w/options

upload files to server via SFTP

Installation

Copy and paste the following snippet into your .yml file.

              

- name: SFTP uploader w/options

uses: zurb/sftp-upload-action@1.3

Learn more about this action in zurb/sftp-upload-action

Choose a version

sftp-upload-action

this is a github action script for upload files to server via SFTP protocol.

it using sftp-sync-deploy

input

  host: 'example.com',            // Required.
  port: 22,                       // Optional, Default to 22.
  username: 'user',               // Required.
  password: 'password',           // Optional.
  localDir: 'dist',               // Required, Absolute or relative to cwd.
  remoteDir: '/path/to/dest'      // Required, Absolute path only.
  dryRun: false                   // Optional. Default to false.
  excludeMode: 'remove'           // Optional. Default to remove.
  exclude: "[                     // exclude patterns (glob)
    'node_modules',
    'src/**/*.spec.ts'
  ]",                              // Optional. Default to [].
  concurrency: 100                 // Optional. Default to 100.

useful link

https://www.npmjs.com/package/sftp-sync-deploy https://github.com/dobbydog/sftp-sync-deploy