-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
99 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: publish | ||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [ published ] | ||
jobs: | ||
publish: | ||
name: Publish new version to TER | ||
if: startsWith(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-20.04 | ||
env: | ||
TYPO3_EXTENSION_KEY: ${{ secrets.TYPO3_EXTENSION_KEY }} | ||
TYPO3_API_USERNAME: ${{ secrets.TYPO3_API_USERNAME }} | ||
TYPO3_API_PASSWORD: ${{ secrets.TYPO3_API_PASSWORD }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- 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\//} | ||
|
||
- name: Get comment | ||
id: get-comment | ||
run: | | ||
readonly local comment=$(git tag -n1 -l ${{ steps.get-version.outputs.version }} | sed "s/^[0-9.]*[ ]*//g") | ||
if [[ -z "${comment// }" ]]; then | ||
echo ::set-output name=comment::Released version ${{ steps.get-version.outputs.version }} of ${{ env.TYPO3_EXTENSION_KEY }} | ||
else | ||
echo ::set-output name=comment::$comment | ||
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 | ||
run: php ~/.composer/vendor/bin/tailor ter:publish --comment "${{ steps.get-comment.outputs.comment }}" ${{ steps.get-version.outputs.version }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
/*************************************************************** | ||
* Copyright notice | ||
* | ||
* (c) 2020 | ||
* All rights reserved | ||
* | ||
* This script is part of the TYPO3 project. The TYPO3 project is | ||
* free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* The GNU General Public License can be found at | ||
* http://www.gnu.org/copyleft/gpl.html. | ||
* | ||
* This script is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* This copyright notice MUST APPEAR in all copies of the script! | ||
***************************************************************/ | ||
|
||
/* @phpstan-ignore-next-line */ | ||
$EM_CONF[$_EXTKEY] = [ | ||
'title' => 'Dynamic HubSpot Forms', | ||
'description' => 'Automatically load HubSpot forms in TYPO3 pages via the HubSpot API', | ||
'category' => 'plugin', | ||
'author' => '', | ||
'author_company' => 'it.x informationssysteme gmbh', | ||
'author_email' => 'typo-itx@itx.de', | ||
'state' => 'stable', | ||
'uploadfolder' => 1, | ||
'createDirs' => '', | ||
'clearCacheOnLoad' => true, | ||
'version' => '1.0.0', | ||
'constraints' => [ | ||
'depends' => [ | ||
'typo3' => '11.5.1-13.9.99' | ||
], | ||
'conflicts' => [], | ||
'suggests' => [], | ||
], | ||
]; |