Skip to content

Update dependency rector/rector to v1 #2

Update dependency rector/rector to v1

Update dependency rector/rector to v1 #2

Workflow file for this run

name: Release PHP
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
release-php:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- name: Install dependencies
run: composer install
#;< PHP_PHAR
- name: Build PHAR
run: composer build
- name: Test PHAR
run: ./.build/php-command.phar || exit 1
#;> PHP_PHAR
- name: Get tag name
id: get-version
run: echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
#;< PHP_PHAR
./.build/php-command.phar
#;> PHP_PHAR
#;< !PHP_PHAR
php-script
#;> !PHP_PHAR