Update .github/workflows/deploy.yml
Some checks failed
deploy / production (push) Has been cancelled

This commit is contained in:
Benjamyn Love 2023-10-14 04:00:20 -04:00
parent 6d01839b55
commit 80226e74ee

View File

@ -1,35 +1,46 @@
name: deploy name: deploy
on: on:
push: push:
tags: tags:
- 'v*' - 'v*'
concurrency: production_environment concurrency: production_environment
jobs: jobs:
production: production:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: Production environment: Production
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup PHP - name: Get composer cache directory
uses: shivammathur/setup-php@v2 id: composer-cache
env: run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with: - name: Cache dependencies
tools: composer uses: actions/cache@v3
extensions: bcmath, ctype, fileinfo, json, odbc, mbstring, openssl, pdo, pdo_mysql, pdo_odbc tokenizer, xml, soap, redis, igbinary with:
php-version: "8.2" path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
- name: Install dependencies restore-keys: ${{ runner.os }}-composer-
run: composer install --no-interaction --no-scripts --prefer-dist
- name: Setup PHP
uses: shivammathur/setup-php@v2
- name: Deploy env:
uses: deployphp/action@v1 GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with: with:
private-key: ${{ secrets.DEPLOY_KEY }} tools: composer
dep: deploy production extensions: bcmath, ctype, fileinfo, json, odbc, mbstring, openssl, pdo, pdo_mysql, pdo_odbc tokenizer, xml, soap, redis, igbinary
php-version: "8.2"
- name: Install dependencies
run: composer install --no-interaction --no-scripts --prefer-dist
- name: Deploy
uses: deployphp/action@v1
with:
private-key: ${{ secrets.DEPLOY_KEY }}
dep: deploy production