Create .github/workflows/ci.yml
Add required Github secrets.
Add .env.ci
to your Laravel project:
APP_ENV=testing
APP_KEY=base64:wevTz42eYncA2j32iQwRWyu5DFb4QVydrl/PmLxxx1s=
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=root
...
...
[![Actions Status](https://github.com/<USER>/<REPO>/workflows/Laravel%20CI/badge.svg)](https://github.com/<USER>/<REPO>/actions)
Deploy on master
branch, when creating a new release, or deleting a release (rollback).
Create .github/workflows/cd.yml
Add required Github secrets.
[![Actions Status](https://github.com/<USER>/<REPO>/workflows/Laravel%20Vapor%20CD/badge.svg)](https://github.com/<USER>/<REPO>/actions)