Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.
/ archived-action-ftp Public archive

GitHub action to deploy files and directories over ftp

Notifications You must be signed in to change notification settings

layux/archived-action-ftp

Repository files navigation

Action FTP

GitHub action to deploy files and directories with different transfer options and support for different protocols such as FTP, FTPS, SFTP.

Inputs

Input Description Required Default
protocol Protocol for the ftp connection could be either ftp, ftps or sftp no ftp
host The address of the ftp server yes
port Port of the ftp server, default is 21 no 21
username Username to use for the ftp server yes
password Password or passphrase depending on the auth type (password or ssh key) no
private_key String for the private SSH key when doing SFTP, if the key has a passphrase you must pass it in the password field no
local_root Local path to use as base for all operations no .
remote_root Remote server path to use as base for all operations no .
transfers Array of transfer options that should be transfered to the remote server yes
passive Passive mode for ftp, default is true no true

Transfer options


The benefit of using this action is that it allows defining custom options for each transfer individually, leading to unique customization that no other action offers. To be able to do that you should define certain properties as stated below.

  • local_path: This property is a path or pattern that will match a directory or file(s) from the local_root property. Anything that matches this is selected as candidate to be uploaded to the remote_path.
  • remote_path: This property is a path that always will be a directory, if it doesn't exists it will be created to be able to place the files in here.
  • force_clean: This property if set to true will ensure that remote_path is clean before uploading files.
  • permissions: This property is used when you want to set specific permissions to the uploaded files at the remote_path.

Example workflow


About

GitHub action to deploy files and directories over ftp

Resources

Stars

Watchers

Forks

Packages

No packages published