From 0dc097ff729fb91d1c08b8478c0da5603fcdcead Mon Sep 17 00:00:00 2001 From: brendt Date: Sat, 4 May 2024 05:41:58 +0200 Subject: [PATCH] Deploy script --- .github/workflows/deploy.yml | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..80488bf --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 + + +