Skip to content

Release

Release #867

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
project:
required: true
description: 'Project to release'
branch:
required: true
description: 'Branch to release'
env:
REQUIRED_PHP_EXTENSIONS: redis
permissions:
contents: read
jobs:
dispatch:
name: PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- '8.2'
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
env:
APP_ENV: prod
APP_DEBUG: 0
REDIS_HOST: localhost
REDIS_PORT: 6379
GITHUB_OAUTH_TOKEN: ${{ secrets.OAUTH_TOKEN_GITHUB }}
DEV_KIT_TOKEN: ${{ secrets.DEV_KIT_TOKEN }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: ${{ env.REQUIRED_PHP_EXTENSIONS }}
coverage: none
tools: composer:v2
- name: Install Composer dependencies (locked)
uses: ramsey/composer-install@v2
with:
composer-options: --no-dev --classmap-authoritative
- name: Dump env
run: composer dump-env prod
- name: Release
run: bin/console release ${{ github.event.inputs.project }} ${{ github.event.inputs.branch }} --pr