-
Notifications
You must be signed in to change notification settings - Fork 3
27 lines (20 loc) · 921 Bytes
/
ter.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
name: TER
on:
push:
tags:
- '*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up PHP Version
run: sudo update-alternatives --set php /usr/bin/php7.4
- name: Install requirements
run: composer global require --dev typo3/tailor ^1.3
- name: Cleanup before we upload
run: git reset --hard HEAD && git clean -fx
- name: Set version in ext_emconf.php
run: /home/runner/.composer/vendor/bin/tailor set-version --no-docs -- "$(git describe --tags --abbrev=0)"
- name: Publish to TER
run: TYPO3_API_USERNAME=${{ secrets.TYPO3_ORG_USERNAME }} TYPO3_API_PASSWORD=${{ secrets.TYPO3_ORG_PASSWORD }} /home/runner/.composer/vendor/bin/tailor ter:publish --comment "$(git tag -n10 -l $(git describe --abbrev=0 --tags) | sed 's/^[0-9.]*[ ]*//g')" "$(git describe --tags --abbrev=0)" "t3fetch"