Skip to content
play

GitHub Action

Simple FTP upload

v1.0.16 Latest version

Simple FTP upload

play

Simple FTP upload

Allows you to upload contents of a directory to an FTP server over FTP or FTPS

Installation

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

              

- name: Simple FTP upload

uses: dennisameling/[email protected]

Learn more about this action in dennisameling/ftp-upload-action

Choose a version

typescript-action status

Simple FTP upload

With this Action, you can upload folder contents to an FTP server. Overwrites existing files on the server!

This Action uploads files straight to the FTP server, without keeping a sync state. If you need a sync state, consider using SamKirkland/FTP-Deploy-Action instead.

Tested and works on:

  • ubuntu-latest
  • windows-latest
  • macos-latest

Basic usage

  uses: dennisameling/ftp-upload-action@v1
  with:
    server: ${{ secrets.FTP_SERVER }}
    username: ${{ secrets.FTP_USER }}
    password: ${{ secrets.FTP_PASSWORD }}
    local_dir: ./ # Should always end with /
    server_dir: ./ # Should always end with /

Available inputs

Key Description Required Default
server FTP server (hostname or IP) yes n/a
username FTP username yes n/a
password FTP password yes n/a
port FTP port number no 21
secure True uses FTPS, while false uses plain FTP. Defaults to true. no true
local_dir Folder to upload from, must end with trailing slash / no ./
server_dir Path to upload to on the server. Must end with trailing slash / no ./