File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 2424 <string >mParticle </string >
2525 <key >--exit-threshold </key >
2626 <string >0 </string >
27- <key >--warn-missing-arg </key >
28- <false />
2927</dict >
3028</plist >
Original file line number Diff line number Diff line change @@ -49,8 +49,15 @@ function build_docs_artifact() {
4949 sudo sh install-appledoc.sh
5050 cd " $repo_dir "
5151
52- appledoc --exit-threshold=0 --warn-missing-arg=NO " ./Scripts/AppledocSettings.plist"
53- ditto -c -k --sequesterRsrc --keepParent " ./Docs/html" " $repo_dir /generated-docs.zip"
52+ # Try to generate docs, but don't fail the release if it has issues
53+ if appledoc --exit-threshold=0 " ./Scripts/AppledocSettings.plist" ; then
54+ ditto -c -k --sequesterRsrc --keepParent " ./Docs/html" " $repo_dir /generated-docs.zip"
55+ else
56+ echo " Documentation generation failed, creating empty docs archive"
57+ mkdir -p ./Docs/html
58+ echo " <html><body>Documentation generation failed</body></html>" > ./Docs/html/index.html
59+ ditto -c -k --sequesterRsrc --keepParent " ./Docs/html" " $repo_dir /generated-docs.zip"
60+ fi
5461}
5562
5663# --- Main ---
You can’t perform that action at this time.
0 commit comments