@@ -106,6 +106,7 @@ jobs:
106
106
context : .
107
107
push : true
108
108
tags : ${{ steps.full-image-name.outputs.image-name }}:latest, ${{ steps.full-image-name.outputs.image-name }}:${{ needs.release.outputs.release-version }}
109
+
109
110
documentation-deploy :
110
111
needs :
111
112
- release
@@ -129,14 +130,47 @@ jobs:
129
130
destination_dir : kdoc
130
131
user_name : ' github-actions[bot]'
131
132
user_email : ' github-actions[bot]@users.noreply.github.com'
132
- commit_message : ' docs: update documentation'
133
+ commit_message : ' docs: update project documentation'
134
+
135
+ async-api-deploy :
136
+ needs :
137
+ - release
138
+ if : needs.release.outputs.release-status == 'released'
139
+ steps :
140
+ - name : Checkout the repository
141
+ uses : actions/checkout@v3
142
+ with :
143
+ submodules : recursive
144
+ fetch-depth : 0
145
+ - name : Validating AsyncAPI document
146
+ uses :
WaleedAshraf/[email protected]
147
+ with :
148
+ filepath : docs/api/my-asyncapi.yml
149
+ - name : Generating HTML from AsyncAPI document
150
+ uses : docker://asyncapi/github-action-for-generator:2.0.0
151
+ with :
152
+ template :
' @asyncapi/[email protected] '
153
+ filepath : docs/async-api/async-api.yml
154
+ output : ./build/asyncapi/html
155
+ - name : Deploy AyncAPI documentation on GitHub Pages
156
+ uses : peaceiris/actions-gh-pages@v3
157
+ with :
158
+ github_token : ${{ secrets.GITHUB_TOKEN }}
159
+ keep_files : true
160
+ publish_dir : ./build/asyncapi/html
161
+ destination_dir : asyncapi
162
+ user_name : ' github-actions[bot]'
163
+ user_email : ' github-actions[bot]@users.noreply.github.com'
164
+ commit_message : ' docs: update asyncapi documentation'
165
+
133
166
success :
134
167
runs-on : ubuntu-22.04
135
168
needs :
136
169
- build
137
170
- release
138
171
- docker-image-delivery
139
172
- documentation-deploy
173
+ - async-api-deploy
140
174
if : >-
141
175
always() && (
142
176
contains(join(needs.*.result, ','), 'failure')
0 commit comments