-
Notifications
You must be signed in to change notification settings - Fork 214
31 lines (30 loc) · 1.1 KB
/
release.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
on:
push:
tags:
- "**"
jobs:
release:
runs-on: ubuntu-20.04
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: mbstring, json
ini-values: date.timezone="Europe/Copenhagen", opcache.fast_shutdown=0
tools: composer:v2.2
- name: "create working directory"
run: "mkdir tailor"
- name: "Install Tailor"
working-directory: tailor
run: "composer require typo3/tailor"
- name: "Upload to TER"
working-directory: tailor
run: "./vendor/bin/tailor ter:publish $TAG $EXTENSION_KEY --artefact $ARTEFECT_URL --comment \"$MESSAGE\""
env:
TYPO3_API_USERNAME: ${{ secrets.TER_USERNAME }}
TYPO3_API_TOKEN: ${{ secrets.TER_TOKEN }}
TAG: ${{ github.ref_name }}
EXTENSION_KEY: flux
ARTEFECT_URL: "https://github.com/${{ github.repository }}/archive/${{ github.ref }}.zip"
MESSAGE: "Automatic release built from GitHub. See the CHANGELOG.md file that is shipped with this release for details."