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": {