Skip to content

Commit 6f20d0c

Browse files
author
Sven Wappler
committed
add github ter release workflow
1 parent 8f272f0 commit 6f20d0c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ter-release.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: TER release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
ter-release:
10+
name: TER release
11+
runs-on: ubuntu-latest
12+
env:
13+
TYPO3_EXTENSION_KEY: 'ws_scss'
14+
REPOSITORY_URL: 'https://github.com/WapplerSystems/ws_scss'
15+
TYPO3_API_TOKEN: ${{ secrets.TYPO3_API_TOKEN }}
16+
TYPO3_API_USERNAME: ${{ secrets.TYPO3_API_USERNAME }}
17+
TYPO3_API_PASSWORD: ${{ secrets.TYPO3_API_PASSWORD }}
18+
19+
steps:
20+
- name: Get the version
21+
id: get_version
22+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: '7.4'
28+
extensions: intl, mbstring, xml, soap, zip, curl
29+
30+
- name: Install EXT:tailor
31+
run: composer global require typo3/tailor --prefer-dist --no-progress --no-suggest
32+
33+
- name: Upload EXT:${{ env.EXTENSION_KEY }} as ${{ steps.get_version.outputs.VERSION }} to TER
34+
run: php ~/.composer/vendor/bin/tailor ter:publish ${{ steps.get_version.outputs.VERSION }} --artefact=${{ env.REPOSITORY_URL }}/archive/${{ steps.get_version.outputs.VERSION }}.zip --comment="New release of version ${{ steps.get_version.outputs.VERSION }} - see details, changelog and documentation on ${{ env.REPOSITORY_URL }}"

0 commit comments

Comments
 (0)