Skip to content

Laravel Forge Deploy Action

Actions
Trigger Laravel Forge Deployments with Github Actions
v1.0.4
Latest
Star (81)

Laravel Forge GitHub Action

Deploy your application to Laravel Forge with GitHub Actions.

Credit

Heavily based on Glennmen/ploi-deploy-action ❤️

Inputs

It is highly recommended that you store all inputs using GitHub Secrets.

Input Description
trigger_url When using the trigger url to deploy your application, this field is required. You can find this within your site's detail panel in Forge.
api_key If you want to use the API to deploy your application, you must provide api_key, server_id and site_id.

You can generate an API key in your Forge dashboard.
server_id You can find the ID of the server in the server's detail panel.
site_id You can find the ID of the site in the site's detail panel.

Examples

Deploy via Deployment Trigger URL

name: 'Deploy on push'

on:
  push:
    branches:
      - master

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

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

Deploy via API

name: 'Deploy on push'

on:
  push:
    branches:
      - master

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

    steps:
      # Trigger Laravel Forge Deploy
      - name: Deploy
        uses: jbrooksuk/[email protected]
        with:
          api_key: ${{ secrets.API_KEY }}
          server_id: ${{ secrets.SERVER_ID }}
          site_id: ${{ secrets.SITE_ID }}

Laravel Forge Deploy Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Trigger Laravel Forge Deployments with Github Actions
v1.0.4
Latest

Laravel Forge Deploy Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.