diff --git a/.github/workflows/publish-to-redaxo.yml b/.github/workflows/publish-to-redaxo.yml index 3da6aa8..fed63f0 100644 --- a/.github/workflows/publish-to-redaxo.yml +++ b/.github/workflows/publish-to-redaxo.yml @@ -1,5 +1,6 @@ -name: Publish release +# Instructions: https://github.com/FriendsOfREDAXO/installer-action/ +name: Publish to REDAXO.org on: release: types: @@ -9,10 +10,18 @@ jobs: redaxo_publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: FriendsOfREDAXO/installer-action@v1 - with: - myredaxo-username: ${{ secrets.MYREDAXO_USERNAME }} - myredaxo-api-key: ${{ secrets.MYREDAXO_API_KEY }} - description: ${{ github.event.release.body }} - + - 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 }}