Skip to content

Commit

Permalink
[RELEASE] v1.0.0
Browse files Browse the repository at this point in the history
* add GitHub Actions publishing workflow
* update author info
* update `ext_emconf.php`
  • Loading branch information
thommyhh committed May 22, 2021
1 parent 3d0dad7 commit 072ff4f
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 15 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: publish
on:
push:
tags:
- v?[0-9]+.[0-9]+.[0-9]+
jobs:
publish:
name: Publish new version to TER
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-20.04
env:
TYPO3_API_TOKEN: ${{ secrets.TYPO3_API_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v2

- 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: Get version
id: get-version
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\/v/}

- name: Get comment
id: get-comment
run: |
readonly local comment=$(git tag -n10 -l ${{ steps.get-version.outputs.version }} | sed "s/^v[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 }}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"authors": [
{
"name": "Thorben Nissen",
"email": "thorben.nissen@kapp-hamburg.de"
"email": "thorben@webcoast.dk"
}
],
"extra": {
Expand Down
25 changes: 11 additions & 14 deletions ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,8 @@
$EM_CONF[$_EXTKEY] = [
'title' => 'Versatile Search',
'description' => 'A versatile and extendable search extension',
'version' => '1.0.0',
'category' => 'plugin',
'author' => 'Thorben Nissen',
'author_email' => 'thorben.nissen@kapp-hamburg.de',
'author_company' => '',
'shy' => '',
'priority' => '',
'module' => '',
'state' => 'stable',
'internal' => '',
'uploadfolder' => '0',
'createDirs' => '',
'modify_tables' => '',
'clearCacheOnLoad' => 0,
'lockType' => '',
'version' => '1.0.0-dev',
'constraints' => [
'depends' => [
'typo3' => '9.5.0-10.4.99',
Expand All @@ -28,4 +15,14 @@
'suggests' => [
],
],
'state' => 'stable',
'clearCacheOnLoad' => 0,
'author' => 'Thorben Nissen',
'author_email' => 'thorben@webcoast.dk',
'author_company' => '',
'autoload' => [
'psr-4' => [
'WEBcoast\\VersatileSearch\\' => 'Classes'
]
],
];

0 comments on commit 072ff4f

Please sign in to comment.