110110 required : false
111111 default : ' macos-15'
112112 type : string
113+ documentation_steps :
114+ description : ' Create documentation.'
115+ required : false
116+ default : ' all' # none, html, latex, pdf, pages, asset, all
117+ type : string
113118 pipeline-delay :
114119 description : ' Slow down this job, to delay the startup of the GitHub Action pipline.'
115120 required : false
@@ -234,9 +239,12 @@ jobs:
234239 from pathlib import Path
235240 from textwrap import dedent
236241
237- package_namespace = "${{ inputs.package_namespace }}".strip()
238- package_name = "${{ inputs.package_name }}".strip()
239- artifact_basename = "${{ steps.variables.outputs.artifact_basename }}"
242+ package_namespace = "${{ inputs.package_namespace }}".strip()
243+ package_name = "${{ inputs.package_name }}".strip()
244+ artifact_basename = "${{ steps.variables.outputs.artifact_basename }}"
245+ documentationSteps = [step for step in "${{ inputs.documentation_steps }}".split(" ") if step != ""]
246+ if "none" in documentationSteps:
247+ documentationSteps = []
240248
241249 artifact_names = {
242250 "unittesting_xml": f"{artifact_basename}-UnitTestReportSummary-XML",
@@ -256,6 +264,15 @@ jobs:
256264 "documentation_latex": f"{artifact_basename}-Documentation-LaTeX",
257265 "documentation_pdf": f"{artifact_basename}-Documentation-PDF",
258266 }
267+ if "html" not in documentationSteps and "all" not in documentationSteps:
268+ print(f"Disabled HTML artifact: {artifact_names["documentation_html"]}")
269+ artifact_names["documentation_html"] = ""
270+ if "latex" not in documentationSteps and "all" not in documentationSteps:
271+ print(f"Disabled LaTeX artifact: {artifact_names["documentation_latex"]}")
272+ artifact_names["documentation_latex"] = ""
273+ if "pdf" not in documentationSteps and "all" not in documentationSteps:
274+ print(f"Disabled PDF artifact: {artifact_names["documentation_pdf"]}")
275+ artifact_names["documentation_pdf"] = ""
259276
260277 print("Artifacts Names ({len(artifact_names)}):")
261278 for id, artifactName in artifact_names.items():
0 commit comments