GitHub Actions for Laravel Vapor. Uses the latest bredmor/laradocker image for CI - Ubuntu@latest with PHP 8.0 and Node 14.
Via GitHub Workflow
- Generate a Vapor API Token under https://vapor.laravel.com/app/account/api-tokens
- Add it as a secret variable to your project under https://github.com/{username}/{project}/settings/secrets
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
Auto-inserts commit hash and git ref for slack messages, emails, etc.
The MIT License (MIT). Please see License File for more information.