[RELEASE] Release Surf 3.4.6 #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Phar and create new Release | |
on: | |
push: | |
tags: | |
- "*.*.*" | |
jobs: | |
tagged-release: | |
name: Tagged Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
coverage: none | |
- name: Install Box global | |
run: composer global require "humbug/box:^3.8" --no-ansi --no-interaction --no-progress --classmap-authoritative | |
- uses: "ramsey/composer-install@v2" | |
with: | |
composer-options: "--no-ansi --no-interaction --no-dev --classmap-authoritative" | |
- name: Compile Phar with Box | |
run: box compile | |
- name: Run surf.phar once | |
run: release/surf.phar --version | |
- name: Set env | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV # tag x.y.z will become "TYPO3 Surf x.y.z" | |
- name: Release | |
uses: softprops/[email protected] | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
name: TYPO3 Surf ${{ env.RELEASE_VERSION }} | |
files: | | |
release/surf.phar |