File tree Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -84,12 +84,6 @@ commands:
84
84
- store_artifacts :
85
85
path : artifacts
86
86
87
- generate_api_docs :
88
- description : generate API documentation using jazzy
89
- steps :
90
- - run :
91
- name : Jazzy API doc gen
92
- command : bash ~/amplify-ios/CircleciScripts/jazzy_doc_gen.sh
93
87
94
88
jobs :
95
89
checkout_code :
@@ -210,6 +204,16 @@ jobs:
210
204
path : build/reports
211
205
- upload_artifacts
212
206
207
+ generate_api_docs :
208
+ << : *defaults
209
+ steps :
210
+ - *restore_repo
211
+ - restore_gems
212
+ - check_bundle
213
+ - run :
214
+ name : Jazzy API doc generation
215
+ command : bash ~/amplify-ios/CircleciScripts/jazzy_doc_gen.sh
216
+
213
217
deploy :
214
218
<< : *defaults
215
219
parameters :
@@ -228,7 +232,6 @@ jobs:
228
232
name : Release pods
229
233
command : bundle exec fastlane << parameters.lane >>
230
234
no_output_timeout : 60m
231
- - generate_api_docs
232
235
233
236
deploy_requires : &deploy_requires
234
237
requires :
@@ -331,3 +334,12 @@ workflows:
331
334
branches :
332
335
only :
333
336
- release
337
+ - generate_api_docs :
338
+ name : Generate api documentation
339
+ requires :
340
+ - deploy stable
341
+ filters :
342
+ branches :
343
+ only :
344
+ - release
345
+
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ generate_docs() {
17
17
git checkout gh-pages
18
18
git reset --hard origin/release
19
19
pod install
20
+ gem install -n /usr/local/bin jazzy
20
21
jazzy && ln -s ../readme-images docs
21
22
git add docs
22
23
git commit -m " chore: update API docs [skip ci]"
You can’t perform that action at this time.
0 commit comments