From 3e498f716044e4439426d8b5801324f0e51bb4fe Mon Sep 17 00:00:00 2001 From: Laravel Vapor Date: Sat, 16 Mar 2024 00:01:10 +0100 Subject: [PATCH] Shipping to Laravel Vapor --- .github/workflows/deploy.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..8ff9f39 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 }}