Composer extensions
This commit is contained in:
2
typo3conf/ext/dp_cookieconsent/.github/FUNDING.yml
vendored
Normal file
2
typo3conf/ext/dp_cookieconsent/.github/FUNDING.yml
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
github: DirkPersky
|
||||
custom: ['https://www.paypal.com/paypalme/dirkpersky']
|
||||
37
typo3conf/ext/dp_cookieconsent/.github/workflows/Deploy.yml
vendored
Normal file
37
typo3conf/ext/dp_cookieconsent/.github/workflows/Deploy.yml
vendored
Normal 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;
|
||||
Reference in New Issue
Block a user