From 2aae18c2b18b0ba20c1d427956c7033b4a367642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Mon, 22 Feb 2021 16:59:15 +0100 Subject: [PATCH] [FEATURE] Add TER release via github actions (#189) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Łukasz Uznański --- .github/workflows/publish.yml | 17 +++++++++++++++++ composer.json | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..7187687 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,17 @@ +name: Publish + +on: + push: + tags: + - "**" + +jobs: + publish: + runs-on: ubuntu-20.04 + steps: + - name: "Checkout" + uses: actions/checkout@v2 + - name: "Publish new version to TER" + uses: tomasnorre/typo3-upload-ter@v2 + with: + api-token: ${{ secrets.TYPO3_API_TOKEN }} diff --git a/composer.json b/composer.json index ddf965c..72666c3 100644 --- a/composer.json +++ b/composer.json @@ -114,6 +114,23 @@ "link-extension": [ "@php -r 'is_dir($extFolder=__DIR__.\"/.Build/public/typo3conf/ext/\") || mkdir($extFolder, 0777, true);'", "@php -r 'file_exists($extFolder=__DIR__.\"/.Build/public/typo3conf/ext/tea\") || symlink(__DIR__,$extFolder);'" + ], + "prepare-release": [ + ".gitignore", + "rm -rf .Build", + "rm -rf .github", + "rm -rf .gitlab", + "rm -rf Tests", + "rm .editorconfig", + "rm .gitattributes", + "rm .php_cs.php", + "rm /Resources/Private/.eslintignore", + "rm /Resources/Private/.eslintrc.json", + "rm /Resources/Private/.prettierrc.js", + "rm /Resources/Private/package.json", + "rm /Resources/Private/stylelint.config.js", + "rm codeception.yml", + "rm phpcs.xml" ] }, "support": {