Archived
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80226e74ee | ||
|
|
6d01839b55 | ||
|
|
c5238ed53b | ||
|
|
f9167a6bdc |
@@ -1,33 +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
|
||||||
with:
|
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||||
tools: composer
|
|
||||||
extensions: bcmath, ctype, fileinfo, json, odbc, mbstring, openssl, pdo, pdo_mysql, pdo_odbc tokenizer, xml, soap, redis, igbinary
|
- name: Cache dependencies
|
||||||
php-version: "8.2"
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
- name: Install dependencies
|
path: ${{ steps.composer-cache.outputs.dir }}
|
||||||
run: composer install --no-interaction --no-scripts --prefer-dist
|
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
||||||
|
restore-keys: ${{ runner.os }}-composer-
|
||||||
|
|
||||||
- name: Deploy
|
- name: Setup PHP
|
||||||
uses: deployphp/action@v1
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
env:
|
||||||
private-key: ${{ secrets.DEPLOY_KEY }}
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
dep: deploy production
|
with:
|
||||||
|
tools: composer
|
||||||
|
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
|
||||||
Reference in new issue
Block a user