Skip to content

Deploys a GitHub project to an FTP server using GitHub Actions.

License

Notifications You must be signed in to change notification settings

anvil-solutions/Fast-FTP-Action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast FTP Action

Automate deploying websites and more with this GitHub action.

Example

name: Publish Website

on: push

jobs:
  Fast-FTP-Action:
    name: Fast FTP Action
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Fast FTP Action
      uses: anvil-solutions/[email protected]
      with:
        server: ftp.samkirkland.com
        port: 2222
        username: myFtpUserName
        password: ${{ secrets.FTP_PASSWORD }}
  1. Select the repository you want to add the action to
  2. Select Blank workflow file or Set up a workflow yourself, if you don't see these options manually create a yaml file Your_Project/.github/workflows/main.yml
  3. Paste the above code into your file and save
  4. Now you need to add a key to the secrets section in your project. To add a secret go to the Settings tab in your project then select Secrets. Add a new Secret for FTP_PASSWORD

Settings

Keys can be added directly to your .yml config file or referenced from your project Secrets storage.

To add a secret go to the Settings tab in your project then select Secrets. I recommend you store your FTP_PASSWORD as a secret.

Key Name Required? Example Default Description
server Yes ftp.samkirkland.com N/A FTP server
username Yes [email protected] N/A FTP username
password Yes CrazyUniquePassword&%123 N/A FTP password
method No sftp ftp Protocol used (ftp or sftp)
local_dir No ./build . The local folder to copy, defaults to root project folder.
remote_dir No ./serverFolder . The remote folder to copy to, deafults to root FTP folder.
port No 2222 22 The remote port.

About

Deploys a GitHub project to an FTP server using GitHub Actions.

Resources

License

Stars

Watchers

Forks

Languages

  • Shell 74.7%
  • Dockerfile 25.3%