Skip to content

Instantly share code, notes, and snippets.

@mrw
Created March 9, 2020 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrw/2928d06b7a48bdca4f68574cbcc63237 to your computer and use it in GitHub Desktop.
Save mrw/2928d06b7a48bdca4f68574cbcc63237 to your computer and use it in GitHub Desktop.
Deploy to Laravel Vapor from Github Actions
name: Deploy to Vapor
on:
push:
branches:
- staging
jobs:
vapor-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Deploy to Vapor
env:
VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }}
run: vendor/bin/vapor deploy staging --commit="${{ github.sha }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment