GitHub Action
SFTP SSH Action
This action can (currently only) upload files and directories over sftp with ssh login.
Required The hostname under which you can reach the server. Default "localhost"
.
Required The port under which you can reach the server. Default 22
.
Required The login name. Default "root"
.
Required The login password. Default "password"
.
Required Path to a local file or directory.
Required Path to a remote file or directory (Any non existing directory or file will be created).
Optional Path to local SSH Agent (key-forwarding).
Optional Path to key file or directly the key (via secret or paste).
Optional Define if private key is a local file or string. Default "false"
.
Optional Define a passphrase for encrypted private keys.
Optional Upload multiple files. type: JSON Object (key/ value). E.g '{"localPath":"remotePath"}'.
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: './'