AutoDeployToFTP is an open-source Continuous Deployment (CD) project designed to automate the deployment of your website to an FTP server.
AutoDeployToFTP is a lightweight tool that seamlessly integrates with GitHub Actions. It utilizes YAML (YML) configuration files and establish a connection between your main branch repository to your FTP server who automatically update your code on your FTP server whenever changes are pushed to your repository.
To set up AutoDeployToFTP for your project, follow these steps:
- Place the
.github
folder at the root of your project. - Configure the list of files and folders to
exclude
insidedeploy.yml
. - Ensure to put the path
pathToRemoteDirectory
insidedeploy.yml
.
- On GitHub, open your repository.
- Go to
Settings
. - Then drop
Secrets and variables
to openActions
. - In
Repository secrets
, put the FTP variable to filldeploy.yml
.- FTP_SERVER
- FTP_USERNAME
- FTP_PASSWORD
- Don't forget to click on
Add secret
button below.
That's it! With these simple setup instructions, AutoDeployToFTP will handle the rest, keeping your website FTP server up to date with each commit.
If you would like to contribute to this project, please follow these guidelines:
- Fork the repository
- Create a new branch:
git checkout -b my-feature
- Make your changes and commit them:
git commit -am 'Add some feature'
- Push the branch to your forked repository:
git push origin my-feature
- Submit a pull request
This project is licensed under the MIT License. See the LICENSE file for more information.