Skip to content

v3.0.4

v3.0.4 #23

Workflow file for this run

name: publish
on:
release:
types: [ created, edited ]
jobs:
publish:
name: Publish to TER
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
env:
TYPO3_API_TOKEN: ${{ secrets.TYPO3_API_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check tag
run: |
if ! [[ ${{ github.ref }} =~ ^refs/tags/v[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$ ]]; then
exit 1
fi
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
extensions: intl, mbstring, json, zip, curl
tools: composer:v2
- name: Install tailor
run: composer global require typo3/tailor --prefer-dist --no-progress --no-suggest
- name: Publish to TER
env:
RELEASE_BODY: ${{ github.event.release.body }}
run: |
version=${GITHUB_REF/refs\/tags\/v/}
comment="$RELEASE_BODY"
if [[ -z "${comment// }" ]]; then
comment="Released version $version"
fi
php ~/.composer/vendor/bin/tailor ter:publish --comment "$comment" "$version"