GithubHelp home page GithubHelp logo

genietim / ftp-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sebastianpopp/ftp-action

9.0 1.0 2.0 21 KB

Automate copying your files via FTP using this GitHub action.

Home Page: https://github.com/marketplace/actions/ftp-upload-action

License: MIT License

Dockerfile 27.21% Shell 72.79%
ftp deployment github-action

ftp-action's Introduction

ftp-action

Automate copying your files via ftp using this GitHub action.

View in GitHub Marketplace. For details on how it works (and the options it sets, such as timeouts), read entrypoint.sh. You may be especially interested to note that:

  • the .git folder is not (up/down)loaded
  • only newer files are (up/down)loaded

Example usage

name: Deploy via ftp
on: push
jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Upload ftp
      uses: genietim/ftp-action@releases/v4
      with:
        host: ${{ secrets.FTP_SERVER }}
        user: ${{ secrets.FTP_USERNAME }}
        password: ${{ secrets.FTP_PASSWORD }}
        localDir: "dist"
        remoteDir: "www"

Note that the secrets.FTP_{SERVER,USERNAME,PASSWORD} variables have to be set in the repository settings.

Input parameters

Input parameter Description Required Default
host FTP server name Yes N/A
user FTP username Yes N/A
password FTP password Yes N/A
localDir The local directory to copy No .
remoteDir The remote directory to copy to No .
forceSsl Force SSL encryption No false

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.