Skip to content
upload-cloud

GitHub Action

FTP Deployer

v1.8 Latest version

FTP Deployer

upload-cloud

FTP Deployer

Simple SFTP / FTP deployment with NodeJS

Installation

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

              

- name: FTP Deployer

uses: sand4rt/ftp-deployer@v1.8

Learn more about this action in sand4rt/ftp-deployer

Choose a version

GitHub action - SFTP / FTP deployer

Simple SFTP / FTP deployment with NodeJS.

Example

- name: FTP Deployer
  uses: sand4rt/ftp-deployer@v1.8
  with:
    sftp: false # optional
    host: ${{ secrets.FTP_HOST }} # e.g. ftp.host.com or sftp.host.com (without ftp:// or ftps://)
    port: 21 # optional, default is: 21
    username: ${{ secrets.FTP_USERNAME }} # FTP username
    password: ${{ secrets.FTP_PASSWORD }} # FTP password
    remote_folder: ${{ secrets.FTP_REMOTE_FOLDER }} # optional, remote path of your FTP server
    local_folder: dist # optional, local path, default is: dist
    cleanup: false # optional, remove existing files inside FTP remote folder
    include: '[]' # optional, e.g. '['dist']'
    exclude: '[]' # optional, e.g. '['node_modules/**', '.git/**', '*.env']'
    passive: true # optional