Created
March 9, 2020 17:56
-
-
Save mrw/2928d06b7a48bdca4f68574cbcc63237 to your computer and use it in GitHub Desktop.
Deploy to Laravel Vapor from Github Actions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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