File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ jobs:
131131 path : zip-check/aws-iot-device-sdk-embedded-C-${{ github.event.inputs.version_number }}.zip
132132 deploy-docs :
133133 needs : tag-commit
134+ if : ${{ ( github.event.inputs.delete_existing_tag_release == 'true' && success() ) || ( github.event.inputs.delete_existing_tag_release == 'false' && always() ) }}
134135 name : Deploy doxygen docs
135136 runs-on : ubuntu-20.04
136137 steps :
@@ -139,6 +140,25 @@ jobs:
139140 with :
140141 ref : ${{ github.event.inputs.version_number }}
141142 add_release : " true"
143+ generate_command : |
144+ git submodule update --init --depth 1
145+ if python3 tools/doxygen/generate_docs.py --root . ; then
146+ find * -type d -wholename '*/doxygen/output' -exec mkdir -p html/{} \; -exec mv {}/html html/{} \;
147+ cat << END > html/index.html
148+ <!DOCTYPE html>
149+ <html>
150+ <head>
151+ <meta http-equiv="refresh" content="0; url='docs/doxygen/output/html'" />
152+ </head>
153+ <body>
154+ <p><a href="docs/doxygen/output/html">Click here if page does not redirect.</a></p>
155+ </body>
156+ </html>
157+ END
158+ else
159+ exit 1
160+ fi
161+ output_dir : html
142162 create-release :
143163 needs :
144164 - create-zip
You can’t perform that action at this time.
0 commit comments