Skip to content

Commit 965003e

Browse files
committed
[RELEASE] Add support for PHP 8
1 parent 3ebb713 commit 965003e

File tree

3 files changed

+57
-2
lines changed

3 files changed

+57
-2
lines changed

.github/workflows/publish.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
tag:
6+
7+
jobs:
8+
publish:
9+
name: Publish new version to TER
10+
if: startsWith(github.ref, 'refs/tags/')
11+
runs-on: ubuntu-20.04
12+
env:
13+
TYPO3_EXTENSION_KEY: ${{ secrets.TYPO3_EXTENSION_KEY }}
14+
TYPO3_API_TOKEN: ${{ secrets.TYPO3_API_TOKEN }}
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v2
19+
20+
- name: Check tag
21+
run: |
22+
if ! [[ ${{ github.ref }} =~ ^refs/tags/[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$ ]]; then
23+
exit 1
24+
fi
25+
- name: Get version
26+
id: get-version
27+
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
28+
29+
- name: Get comment
30+
id: get-comment
31+
run: |
32+
readonly local comment=$(git tag -n10 -l ${{ steps.get-version.outputs.version }} | sed "s/^[0-9.]*[ ]*//g")
33+
if [[ -z "${comment// }" ]]; then
34+
echo ::set-output name=comment::Released version ${{ steps.get-version.outputs.version }} of ${{ env.TYPO3_EXTENSION_KEY }}
35+
else
36+
echo ::set-output name=comment::$comment
37+
fi
38+
- name: Setup PHP
39+
uses: shivammathur/setup-php@v2
40+
with:
41+
php-version: 7.4
42+
extensions: intl, mbstring, json, zip, curl
43+
44+
- name: Install tailor
45+
run: composer global require typo3/tailor --prefer-dist --no-progress --no-suggest
46+
47+
- name: Publish to TER
48+
run: php ~/.composer/vendor/bin/tailor ter:publish --comment "${{ steps.get-comment.outputs.comment }}" ${{ steps.get-version.outputs.version }}

composer.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
},
1111
"require-dev": {
1212
"phpunit/phpunit": "~7.0",
13-
"squizlabs/php_codesniffer": "^2.3"
13+
"squizlabs/php_codesniffer": "^2.3",
14+
"typo3/tailor": "^1.4.0"
1415
},
1516
"homepage": "https://b13.com",
1617
"license": ["GPL-2.0-or-later"],
@@ -38,5 +39,11 @@
3839
"test": "phpunit",
3940
"check-style": "phpcs -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 Classes Tests",
4041
"fix-style": "phpcbf -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 Classes Tests"
42+
},
43+
"config": {
44+
"allow-plugins": {
45+
"typo3/class-alias-loader": true,
46+
"typo3/cms-composer-installers": true
47+
}
4148
}
4249
}

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'title' => 'HTTP2 Server Push Support for TYPO3',
55
'description' => '',
66
'category' => 'extension',
7-
'version' => '1.1.0',
7+
'version' => '1.1.1',
88
'state' => 'stable',
99
'clearcacheonload' => 1,
1010
'author' => 'b13 GmbH',

0 commit comments

Comments
 (0)