Skip to content

Commit

Permalink
Shipping to Laravel Vapor
Browse files Browse the repository at this point in the history
  • Loading branch information
laravel-vapor committed Mar 15, 2024
1 parent 214670e commit 3e498f7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy

on:
push:
branches: [ production ]

jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer:v2
coverage: none

- name: Require Vapor CLI
run: composer global require laravel/vapor-cli

- name: Install Project Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Deploy Environment
run: vapor deploy ${{ github.ref_name }} --commit="${{ github.event.head_commit.id }}" --message="${{ github.event.head_commit.message }}"
env:
VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }}

0 comments on commit 3e498f7

Please sign in to comment.