Skip to content

Commit c7e9a4f

Browse files
Update release-automation.yml
1 parent b5a8f9b commit c7e9a4f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/release-automation.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)