Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Deploy to [branch-name]

on:
push:
branches: [ master ]

jobs:
vapor:
name: Check out, build and deploy using Vapor
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ubient/laravel-vapor-action@master
env:
VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }}
with:
args: "deploy [branch-name]" #
25 changes: 25 additions & 0 deletions vapor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
id: 11824
name: your-name
environments:
production:
memory: 1024
cli-memory: 512
runtime: php-7.4
build:
- 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev'
- 'php artisan event:cache'
# - 'npm ci && npm run prod && rm -rf node_modules'
staging:
database: your-db-name
database-user: your-db-user
memory: 1024
cli-memory: 512
runtime: php-7.4
build:
- 'COMPOSER_MIRROR_PATH_REPOS=1 composer install'
- 'php artisan event:cache'
deploy:
- 'php artisan migrate --force'
- 'php artisan db:seed'
domain: staging.your-domain.com