Automatically Deploy Your Website to InfinityFree Using GitHub Actions
FreeFlowCI: Automatically Deploy Your Website to InfinityFree Using GitHub Actions
Deploying a website manually using FTP can be slow, repetitive, and frustrating. Every small update means opening an FTP client, logging in, uploading files, and hoping nothing breaks.
But what if every time you push code to GitHub, your website automatically updates itself?
That’s exactly what FreeFlowCI does.
FreeFlowCI is an open-source GitHub Action that automates deployment of your project to InfinityFree hosting. Once configured, it builds your project and uploads it automatically whenever you push code.
No manual FTP. No repeated uploads. Just push your code and your site updates.
What is FreeFlowCI?
FreeFlowCI is a GitHub Action designed to automate deployment workflows for developers using InfinityFree hosting.
It connects your GitHub repository to your hosting account and automatically uploads your files using LFTP whenever changes are pushed to your repository.
This makes it perfect for:
PHP websites
Node.js projects
Python applications
Static websites
Frontend frameworks
Instead of uploading files manually, your entire deployment pipeline runs automatically inside GitHub Actions.
Why FreeFlowCI Exists
Many developers using free hosting platforms like InfinityFree often rely on manual FTP uploads.
While this works, it creates several problems:
Deployments take time
Manual uploads cause mistakes
Teams can't collaborate efficiently
CI/CD workflows are missing
FreeFlowCI solves this by bringing Continuous Deployment to free hosting.
With a single configuration file, your repository becomes a fully automated deployment pipeline.
Key Features
FreeFlowCI includes several useful features designed for both beginners and advanced developers.
Automatic Deployment
Whenever you push code to your main branch, your project deploys automatically.
Supports Multiple Project Types
FreeFlowCI can automatically prepare your project before deployment:
PHP Projects
Runs composer install
Node.js Projects
Runs npm install
Runs npm run build (if available)
Python Projects
Runs pip install -r requirements.txt
Secure Credentials
Your FTP credentials are stored using GitHub encrypted secrets, ensuring they never appear in your repository code.
Beginner Friendly
If you're just deploying a simple HTML or PHP website, the default configuration works immediately.
Deploying a Simple PHP Website
To deploy a basic PHP or HTML site, create a GitHub workflow:
Yaml
name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Frost-bit-star/FreeFlowCI@v1
with:
ftp_username: ${{ secrets.FTP_USER }}
ftp_password: ${{ secrets.FTP_PASS }}
Once this is configured, pushing to main will automatically deploy your site to htdocs.
Deploying a PHP Project with Composer
If your project uses Composer, enable the PHP deployment option:
Yaml
deploy_php: "true"
FreeFlowCI will automatically run:
Copy code
composer install
before uploading files to the server.
Deploying a Node.js Project
For frontend frameworks or Node-based projects:
Yaml
Copy code
deploy_node: "true"
FreeFlowCI will automatically run:
Copy code
npm install
npm run build
before deployment.
Deploying a Python Project
For Python apps:
Yaml
Copy code
deploy_python: "true"
FreeFlowCI will install dependencies using:
Copy code
pip install -r requirements.txt
Setting Up GitHub Secrets
To keep your credentials secure, you need to add them to your repository secrets.
Navigate to:
Repository → Settings → Secrets → Actions
Add the following:
FTP_USER
Your InfinityFree FTP username
FTP_PASS
Your InfinityFree FTP password
Once added, FreeFlowCI will use these securely during deployment.
Deployment Workflow
Once everything is configured, the workflow becomes simple:
Write code
Push to GitHub
GitHub Actions runs FreeFlowCI
Project builds automatically
Files deploy to InfinityFree
Your website updates instantly.
Security
FreeFlowCI is designed with security in mind.
Uses GitHub encrypted secrets
Credentials never appear in logs
Deployment runs inside GitHub runners
Secure FTP connection via LFTP
This ensures your hosting credentials remain protected.
Who Should Use FreeFlowCI?
FreeFlowCI is ideal for:
Developers using InfinityFree hosting
Beginners learning CI/CD
Open source projects
Developers tired of manual FTP uploads
Anyone who wants automated deployments for free hosting
Final Thoughts
Automation is one of the biggest productivity boosts in modern development.
Instead of spending time uploading files manually, tools like FreeFlowCI allow developers to focus on what actually matters: building great software.
By connecting GitHub with InfinityFree, FreeFlowCI brings continuous deployment to free hosting environments, making modern development workflows accessible to everyone.
Try FreeFlowCI
If you want automated deployment for your InfinityFree projects, check it out:
https://github.com/Frost-bit-star/FreeFlowCI
.png)
Comments
Post a Comment