@@ -115,54 +115,24 @@ jobs:
115115 needs :
116116 - release
117117 runs-on : ubuntu-latest
118- # Update documentation only when there is a new release
119118 if : needs.release.outputs.release-status == 'released'
120119 steps :
121120 - name : Checkout the repository
122121 uses : actions/checkout@v3
123122 with :
124123 submodules : recursive
125124 fetch-depth : 0
126- - name : Generate Documentation
127- run : ./gradlew dokkaHtml
128- - name : Deploy documentation on GitHub Pages
129- uses : peaceiris/actions-gh-pages@v3
125+ - name : Generate and deploy documenation
126+ uses : SmartOperatingBlock/documentation-ghp-action@1.0.0
130127 with :
131- github_token : ${{ secrets.GITHUB_TOKEN }}
132- keep_files : true
133- publish_dir : ./build/dokka/html
134- destination_dir : kdoc
135- user_name : ' github-actions[bot]'
136- user_email : ' github-actions[bot]@users.noreply.github.com'
137- commit_message : ' docs: update project documentation'
138-
139- async-api-deploy :
140- needs :
141- - release
142- runs-on : ubuntu-latest
143- if : needs.release.outputs.release-status == 'released'
144- steps :
145- - name : Checkout the repository
146- uses : actions/checkout@v3
147- with :
148- submodules : recursive
149- fetch-depth : 0
150- - name : Generating HTML from AsyncAPI document
151- uses : docker://asyncapi/github-action-for-generator:2.1.11
152- with :
153- template : ' @asyncapi/html-template@0.9.0'
154- filepath : ./docs/async-api/async-api.yml
155- output : asyncapy-doc
156- - name : Deploy AyncAPI documentation on GitHub Pages
157- uses : peaceiris/actions-gh-pages@v3
158- with :
159- github_token : ${{ secrets.GITHUB_TOKEN }}
160- keep_files : true
161- publish_dir : asyncapi-doc
162- destination_dir : asyncapi
163- user_name : ' github-actions[bot]'
164- user_email : ' github-actions[bot]@users.noreply.github.com'
165- commit_message : ' docs: update asyncapi documentation'
128+ should-generate-code-documentation : true
129+ code-documentation-generation-command : ./gradlew dokkaHtml
130+ code-documentation-dst-folder : ' ./build/dokka/html'
131+ code-documentation-site-folder : ' documentation/code-doc'
132+ should-generate-asyncapi-documentation : true
133+ asyncapi-documentation-input-file : ' docs/asyncapi/asyncapi.yml'
134+ asyncapi-documentation-dst-folder : ' documentation/asyncapi-doc'
135+ github-token : ${{ secrets.GITHUB_TOKEN }}
166136
167137 success :
168138 runs-on : ubuntu-22.04
@@ -171,7 +141,6 @@ jobs:
171141 - release
172142 - docker-image-delivery
173143 - documentation-deploy
174- - async-api-deploy
175144 if : >-
176145 always() && (
177146 contains(join(needs.*.result, ','), 'failure')
0 commit comments