@@ -115,54 +115,24 @@ jobs:
115
115
needs :
116
116
- release
117
117
runs-on : ubuntu-latest
118
- # Update documentation only when there is a new release
119
118
if : needs.release.outputs.release-status == 'released'
120
119
steps :
121
120
- name : Checkout the repository
122
121
uses : actions/checkout@v3
123
122
with :
124
123
submodules : recursive
125
124
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/[email protected]
130
127
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/[email protected] '
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 }}
166
136
167
137
success :
168
138
runs-on : ubuntu-22.04
@@ -171,7 +141,6 @@ jobs:
171
141
- release
172
142
- docker-image-delivery
173
143
- documentation-deploy
174
- - async-api-deploy
175
144
if : >-
176
145
always() && (
177
146
contains(join(needs.*.result, ','), 'failure')
0 commit comments