Composer extensions

This commit is contained in:
Matteo Gallo
2026-07-03 20:05:15 +02:00
parent 5ca4743197
commit d8a4481a03
1747 changed files with 3503 additions and 194889 deletions

View File

@@ -0,0 +1,37 @@
name: Deploy
on:
push:
tags:
- "v?[0-9]+.[0-9]+.[0-9]+"
jobs:
Ship-to-TER:
name: 'Ship to TER'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none
- name: "Extract tag, version from GITHUB_REF"
id: "github-ref"
run: |
echo "::set-output name=tag::$(echo $GITHUB_REF | sed -E -n 's#^refs/tags/(.*)$#\1#p')"
echo "::set-output name=version::$(echo $GITHUB_REF | sed -E -n 's#^refs/tags/v?([0-9]+\.)([0-9]+\.)([0-9]+)#\1\2\3#p')"
- name: Deploy to TER
run: |
if [ -n "${{ secrets.TYPO3_ORG_USERNAME }}" ] && [ -n "${{ secrets.TYPO3_ORG_PASSWORD }}" ]; then
echo -e "Preparing upload of release ${{ steps.github-ref.outputs.version }} to TER\n";
# Install ter client
composer global require helhum/ter-client
# Upload
echo "Uploading release ${{ steps.github-ref.outputs.version }} to TER\n"
$HOME/.composer/vendor/helhum/ter-client/ter-client upload dp_cookieconsent . -u "${{ secrets.TYPO3_ORG_USERNAME }}" -p "${{ secrets.TYPO3_ORG_PASSWORD }}" -m "https://github.com/DirkPersky/typo3-dp_cookieconsent/releases/tag/${{ steps.github-ref.outputs.tag }}"
fi;