/laravel-forge-update-deployment-script

An action to update the laravel forge deployment script

Primary LanguageShellMIT LicenseMIT

Laravel Forge GitHub Action To Update Deployment Script

Update your Laravel Forge Deployment script with GitHub Actions.

Credit

Heavily based on jbrooksuk/laravel-forge-action

Inputs

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

| Input | Description | |---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | | api_key | API to interact with Laravel Forge, 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. | | content | What will be replaced in the deployment script for the site. | | auto_source | Boolean value true or false if to source the environment values. Default if false. |

Examples

Update

name: 'Deploy on push'

on:
  push:
    branches:
      - master

jobs:
  forge-update-deploy-script:
    name: 'Laravel Forge Update Deploy Script'
    runs-on: ubuntu-latest

    steps:
      # Trigger Laravel Forge Deploy
      - name: Deploy
        uses: lionslair/laravel-forge-update-deployment-script
        with:
          api_key: ${{ secrets.API_KEY }}
          server_id: ${{ secrets.SERVER_ID }}
          site_id: ${{ secrets.SITE_ID }}