-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (29 loc) · 1.03 KB
/
terRelease.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: typo3-ter-release
run-name: Release on TYPO3 TER
on:
workflow_call:
inputs:
php-version:
default: '8.1'
type: string
secrets:
api-token:
required: true
extension-key:
required: true
jobs:
ter-release:
runs-on: ubuntu-latest
steps:
# Setup PHP and composer
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ inputs.php-version }}
extensions: intl, mbstring, json, zip, curl
tools: composer:v2
# Install tailor CLI
- name: Install tailor
run: composer global require typo3/tailor --prefer-dist --no-progress --no-suggest
- name: Publish extension to TER
run: TYPO3_API_TOKEN="${{ secrets.api-token }}" php ~/.composer/vendor/bin/tailor ter:publish --comment "${{ github.event.release.body }}" --artefact "https://github.com/sitegeist/image-jack/archive/${{ github.event.release.tag_name }}.zip" ${{ github.event.release.tag_name }} ${{ secrets.extension-key }}