May 10, 2021

A GitHub Action for Laravel Forge

laravel github

Today I'm pleased to announce the availability of a new GitHub Action for Laravel Forge deployments.

I want to thank @Glennmen for the equivalent Ploi action, as it's heavily based on it.

Here is an example GitHub Workflow for deploying your application:

name: 'Deploy on push'

on:
  push:
    branches:
      - master

jobs:
  forge-deploy:
    name: 'Laravel Forge Deploy'
    runs-on: ubuntu-latest

    steps:
      # Checkout the repository to the GitHub Actions runner
      - name: Checkout
        uses: actions/[email protected]

      # Trigger Laravel Forge Deploy
      - name: Deploy
        uses: jbrooksuk/[email protected]
        with:
          trigger_url: ${{ secrets.TRIGGER_URL }}

Please let me know if you're using it!