Deploy Laravel for GitHub Actions
View on GitHub

Step 2: Choose which branch to deploy

By default, a commit to the main branch will trigger a deployment. If you want to deploy a different branch, edit the ci-cd.yml file and change every occurrence of main to your desired branch.

If you want to deploy to multiple environments you can copy and paste the deploy-main job.