Skip to content

Latest commit

 

History

History
executable file
·
56 lines (41 loc) · 1.66 KB

README.md

File metadata and controls

executable file
·
56 lines (41 loc) · 1.66 KB

Laravel Vapor Action

GitHub Release License

GitHub Actions for Laravel Vapor. Uses the latest bredmor/laradocker image for CI - Ubuntu@latest with PHP 8.0 and Node 14.

Usage

Via GitHub Workflow

Prepare

  1. Generate a Vapor API Token under https://vapor.laravel.com/app/account/api-tokens
  2. Add it as a secret variable to your project under https://github.com/{username}/{project}/settings/secrets

Example Github Action

Add a new workflow under .github/workflows (e.g. push.yaml) to your repository to enable this Action.

You can find out more about under https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobs

name: CI
on:
  push:
    branches:
      - beta
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Deploy to staging
      uses: bredmor/vapor-action@master
      env:
        VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }}
      with:
        args: deploy staging

Vapor CI Integration Helper

Auto-inserts commit hash and git ref for slack messages, emails, etc.

Credits

License

The MIT License (MIT). Please see License File for more information.