Last active
June 2, 2020 11:12
-
-
Save sohaibilyas/31f74f05fdad325c0c6e3d3adae3967f to your computer and use it in GitHub Desktop.
Github Action file to deploy to Laravel Vapor.
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 Production | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
laravel: | |
name: Check out, build and deploy to Vapor | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP, with composer and extensions | |
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php | |
with: | |
php-version: 7.4 | |
tools: pecl | |
extensions: mbstring, dom, fileinfo, gd, bcmath, xml, tokenizer, zip, soap, intl, exif, pcntl | |
- name: Install Composer dependencies | |
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader --no-dev | |
- name: Deploy with Vapor | |
env: | |
VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }} | |
run: ./vendor/bin/vapor deploy production |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment