Skip to content

Deploy

Deploy #20

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
branches:
- main
inputs:
environment:
description: 'The Vapor environment to deploy to.'
required: false
default: 'staging'
type: choice
options:
- staging
- production
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- name: Install NPM Dependencies
run: npm install
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:v2
coverage: none
- name: Require Vapor CLI
run: composer global require laravel/vapor-cli
- name: Add HTTP basic auth credentials
run: echo '${{ secrets.COMPOSER_AUTH_JSON }}' > $GITHUB_WORKSPACE/auth.json
- name: Install Project Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader
- name: Deploy Environment
run: vapor deploy ${{ github.event.inputs.environment }}
env:
VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }}
VITE_APP_NAME: "WRMD"
VITE_PUSHER_APP_KEY: "5772823adf126e1d9bf3"
VITE_PUSHER_APP_CLUSTER: "mt1"