3333 run : |
3434 echo "DETECTED_EXTENSION_KEY=$(cat composer.json | jq -r '.extra."typo3/cms"."extension-key"' )" >> "$GITHUB_ENV"
3535
36+ - name : Get comment
37+ id : get-comment
38+ run : |
39+ {
40+ echo 'terReleaseNotes<<EOF'
41+ echo "https://github.com/${{ github.repository }}/releases/tag/${{ env.version }}"
42+ echo EOF
43+ } >> "$GITHUB_ENV"
44+
3645 - name : Setup PHP 8.1
3746 if : github.event.base_ref == 'refs/heads/main'
3847 uses : shivammathur/setup-php@v2
5261 run : |
5362 php ~/.composer/vendor/bin/tailor create-artefact ${{ env.version }} ${{ env.DETECTED_EXTENSION_KEY }}
5463
64+ - name : " Render documentation"
65+ run : |
66+ Build/Scripts/runTests.sh -s renderDocumentation && \
67+ mkdir -p tailor-version-artefact && \
68+ cd Documentation-GENERATED-temp && \
69+ zip -r ../tailor-version-artefact/${{ env.DETECTED_EXTENSION_KEY }}_${{ env.version }}-documentation.zip
70+
5571 # Note that when release already exists for tag, only files will be uploaded and lets this acting as a
5672 # fallback to ensure that a real GitHub release is created for the tag along with extension artifacts.
5773 - name : Create release and upload artifacts in the same step
@@ -65,12 +81,11 @@ jobs:
6581 generate_release_notes : true
6682 files : |
6783 tailor-version-artefact/${{ env.DETECTED_EXTENSION_KEY }}_${{ env.version }}.zip
84+ tailor-version-artefact/${{ env.DETECTED_EXTENSION_KEY }}_${{ env.version }}-documentation.zip
6885 LICENSE
6986 fail_on_unmatched_files : true
7087
71- # @todo No public TER release yet. TER Upload package uploaded to GitHub release(s) can be used to
72- # upload versions later to TER manually when making extension public.
73- # - name: Publish to TER
74- # run: |
75- # php ~/.composer/vendor/bin/tailor ter:publish --comment "${{ env.terReleaseNotes }}" ${{ env.version }} \
76- # --artefact=tailor-version-artefact/${{ env.DETECTED_EXTENSION_KEY }}_${{ env.version }}.zip
88+ - name : Publish to TER
89+ run : |
90+ php ~/.composer/vendor/bin/tailor ter:publish --comment "${{ env.terReleaseNotes }}" ${{ env.version }} \
91+ --artefact=tailor-version-artefact/${{ env.DETECTED_EXTENSION_KEY }}_${{ env.version }}.zip
0 commit comments