Skip to content

Commit

Permalink
Deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed May 4, 2024
1 parent 2774b37 commit 0dc097f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo

- name: Install dependencies
run: |
composer update
npm i
- name: List Installed Dependencies
run: composer show -D

- name: Setup .env
run: cp .env.example .env

- name: Run Tempest console
run: php ./tempest

- name: Run Tempest Server in the background
run: php ./tempest serve &

- name: Test GET request
run: curl http://localhost:8000

- name: Deploy
run: php ./tempest deploy



0 comments on commit 0dc097f

Please sign in to comment.