Skip to content

chore: raise version number #14

chore: raise version number

chore: raise version number #14

Workflow file for this run

name: Deploy to TER
on:
push:
tags:
- "**"
jobs:
TER:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none
- name: "Determine tag"
id: "determine-tag"
run: "echo \"name=tag=${GITHUB_REF#refs/tags/}\" >> $GITHUB_OUTPUT"
- name: Install TYPO3 Tailor Extension
run: composer global require typo3/tailor --prefer-dist --no-progress --no-suggest
- name: Deploy to TER
env:
TYPO3_API_USERNAME: ${{secrets.TYPO3_ORG_USERNAME}}
TYPO3_API_PASSWORD: ${{secrets.TYPO3_ORG_PASSWORD}}
run: |
echo -e "Preparing upload of release ${{ steps.determine-tag.outputs.tag }} to TER\n";
# Install Tylor client
composer global require typo3/tailor
# Build extension files
composer extension-release
# Upload
TAG_MESSAGE=`git log -1 --pretty=%B`
echo "Tag-Message: ${TAG_MESSAGE}"
echo "Uploading release ${{ steps.determine-tag.outputs.tag }} to TER"
$HOME/.composer/./vendor/bin/tailor ter:publish ${{ steps.determine-tag.outputs.tag }} --comment "$TAG_MESSAGE"