Overview
This is the initial release of the Laravel Deploy Action, a GitHub Action designed to simplify the deployment of Laravel projects to a server via FTP. It supports customizable PHP versions and extensions and can handle different environment files based on the deployment branch.
Features
- Branch-Based Deployment: Deploy to production or development environments based on the specified branch.
- Custom PHP Versions: Configure the PHP version and extensions required for your Laravel application.
- Environment Files Handling: Optionally use
.env.prod
and.env.dev
files or fallback to.env.example
. - FTP Sync: Sync files to your server via FTP using
SamKirkland/FTP-Deploy-Action
.
Acknowledgments
This GitHub Action leverages several other amazing GitHub Actions:
- actions/checkout: Used to check out the repository code.
- shivammathur/setup-php: Used to set up the desired PHP version and extensions.
- SamKirkland/FTP-Deploy-Action: Used to sync files via FTP to the server.
These tools make it easy to build and deploy your Laravel applications in a continuous integration/continuous deployment (CI/CD) pipeline.
Usage
For detailed usage instructions and examples, please refer to the README.md.
Installation
You can add this action to your workflows by including it in your .github/workflows
directory.