Skip to content

SFTP SSH Action

Actions
Upload files or directories via sftp and ssh
v1.0.5
Latest
Star (28)

Tags

 (1)

Currently, not active maintained, but working!

sftp-action

This action can (currently only) upload files and directories over sftp with ssh login.

Inputs

host

Required The hostname under which you can reach the server. Default "localhost".

port

Required The port under which you can reach the server. Default 22.

username

Required The login name. Default "root".

password

Required The login password. Default "password".

localPath

Required Path to a local file or directory.

remotePath

Required Path to a remote file or directory (Any non existing directory or file will be created).

agent

Optional Path to local SSH Agent (key-forwarding).

privateKey

Optional Path to key file or directly the key (via secret or paste).

privateKeyIsFile

Optional Define if private key is a local file or string. Default "false".

passphrase

Optional Define a passphrase for encrypted private keys.

additionalPaths

Optional Upload multiple files. type: JSON Object (key/ value). E.g '{"localPath":"remotePath"}'.

Example usage

on: [push]

jobs:
  upload_files:
    runs-on: ubuntu-latest
    name: Upload a builded file.
    steps:
    - name: Checkout
      uses: actions/[email protected]
    - name: Upload Files
      id: upload
      uses: Creepios/[email protected]
      with:
        host: '127.0.0.1'
        port: 22
        username: 'root'
        password: 'password'
        localPath: './dist/index.js'
        remotePath: './'

SFTP SSH Action 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

Upload files or directories via sftp and ssh
v1.0.5
Latest

Tags

 (1)

SFTP SSH Action 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.