From 028e8f29d2d7d49eb5071a2c2984b72d74124f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Lochm=C3=BCller?= Date: Wed, 19 Jul 2023 12:58:46 +0200 Subject: [PATCH] update deployment process --- .github/workflows/Release.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 72a7d933f87..98d991b1fd3 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -15,34 +15,38 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Check tag run: | if ! [[ ${{ github.ref }} =~ ^refs/tags/[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$ ]]; then exit 1 fi + - name: Get version id: get-version - run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//} + run: echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV - name: Get comment id: get-comment run: | - readonly local comment=$(git tag -n10 -l ${{ steps.get-version.outputs.version }} | sed "s/^[0-9.]*[ ]*//g") + readonly local comment=$(git tag -n10 -l ${{ env.version }} | sed "s/^[0-9.]*[ ]*//g") + if [[ -z "${comment// }" ]]; then - echo ::set-output name=comment::Released version ${{ steps.get-version.outputs.version }} of staticfilecache + echo "comment=Released version ${{ env.version }} of ${{ env.TYPO3_EXTENSION_KEY }}" >> $GITHUB_ENV else - echo ::set-output name=comment::$comment + echo "comment=$comment" >> $GITHUB_ENV fi + - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 7.4 + php-version: 8.0 extensions: intl, mbstring, json, zip, curl + tools: composer:v2 - name: Install tailor - run: composer global require typo3/tailor --prefer-dist --no-progress --no-suggest + run: composer global require typo3/tailor --prefer-dist --no-progress - name: Publish to TER - run: php ~/.composer/vendor/bin/tailor ter:publish --comment "${{ steps.get-comment.outputs.comment }}" ${{ steps.get-version.outputs.version }} + run: php ~/.composer/vendor/bin/tailor ter:publish --comment "${{ env.comment }}" ${{ env.version }}