-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
00f617e
commit 048ed77
Showing
1 changed file
with
29 additions
and
0 deletions.
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,29 @@ | ||
name: TYPO3 Extension TER Release | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
ter-release: | ||
name: TYPO3 TER Release | ||
runs-on: ubuntu-latest | ||
env: | ||
TYPO3_EXTENSION_KEY: ${{ secrets.TYPO3_EXTENSION_KEY }} | ||
TYPO3_REPOSITORY_URL: ${{ secrets.TYPO3_REPOSITORY_URL }} | ||
TYPO3_API_TOKEN: ${{ secrets.TYPO3_API_TOKEN }} | ||
TYPO3_API_USERNAME: ${{ secrets.TYPO3_API_USERNAME }} | ||
TYPO3_API_PASSWORD: ${{ secrets.TYPO3_API_PASSWORD }} | ||
|
||
steps: | ||
- name: Grab new version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | ||
- name: Configure PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
extensions: intl, mbstring, xml, soap, zip, curl | ||
- name: Install TYPO3 Tailor Extension | ||
run: composer global require typo3/tailor --prefer-dist --no-progress --no-suggest | ||
- name: Release EXT:${{ env.TYPO3_EXTENSION_KEY }} as ${{ steps.get_version.outputs.VERSION }} to TER | ||
run: php ~/.composer/vendor/bin/tailor ter:publish ${{ steps.get_version.outputs.VERSION }} --artefact=${{ env.TYPO3_REPOSITORY_URL }}/archive/${{ steps.get_version.outputs.VERSION }}.zip --comment="Successfully release new version ${{ steps.get_version.outputs.VERSION }} - see changelog at ${{ env.TYPO3_REPOSITORY_URL }}" |