From 19979551ac84eeb86832e6b9fc21f26a117d4ac0 Mon Sep 17 00:00:00 2001 From: Thomas Skerbis Date: Thu, 15 Aug 2024 16:01:15 +0200 Subject: [PATCH] publish-to-redaxo-org.yml --- .github/workflows/publish-to-redaxo-org.yml | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/publish-to-redaxo-org.yml diff --git a/.github/workflows/publish-to-redaxo-org.yml b/.github/workflows/publish-to-redaxo-org.yml new file mode 100644 index 0000000..4fecc19 --- /dev/null +++ b/.github/workflows/publish-to-redaxo-org.yml @@ -0,0 +1,27 @@ +# Instructions: https://github.com/FriendsOfREDAXO/installer-action/ + +name: Publish to REDAXO.org +on: + release: + types: + - published + +jobs: + redaxo_publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - if: hashFiles('composer.json') != '' + uses: shivammathur/setup-php@v2 + with: + php-version: "8.2" + - if: hashFiles('composer.json') != '' + uses: ramsey/composer-install@v2 + with: + composer-options: "--no-dev" + - uses: FriendsOfREDAXO/installer-action@v1 + with: + myredaxo-username: ${{ secrets.MYREDAXO_USERNAME }} + myredaxo-api-key: ${{ secrets.MYREDAXO_API_KEY }} + description: ${{ github.event.release.body }} + version: ${{ github.event.release.tag_name }}