Skip to content

Commit

Permalink
add ter-release github action
Browse files Browse the repository at this point in the history
  • Loading branch information
svewap committed Oct 3, 2024
1 parent 0a386ea commit c8339a8
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ter-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: TER release

on:
push:
tags:
- '*'

jobs:
ter-release:
name: TER release
runs-on: ubuntu-latest
env:
TYPO3_EXTENSION_KEY: 'filecollection_gallery'
REPOSITORY_URL: 'https://github.com/WapplerSystems/t3-filecollection-gallery'
TYPO3_API_TOKEN: ${{ secrets.TYPO3_API_TOKEN }}
TYPO3_API_USERNAME: ${{ secrets.TYPO3_API_USERNAME }}
TYPO3_API_PASSWORD: ${{ secrets.TYPO3_API_PASSWORD }}

steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: intl, mbstring, xml, soap, zip, curl

- name: Install EXT:tailor
run: composer global require typo3/tailor --prefer-dist --no-progress --no-suggest

- name: Upload EXT:${{ env.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.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 comments on commit c8339a8

Please sign in to comment.