Edit on GitHubCommand Reference:
Command Reference: publish
cml publish [options] <image file>Publicly host an image for displaying in a CML report. Used internally by
cml comment {create,update} --publish.
Options
Any generic option in addition to:
-
--md: Produce output in Markdown format. -
-t=<...>,--title=<...>: Title for Markdown output. -
--mime-type=<...>: Content MIME type [default: inferred from content]. -
--native: Uses CI provider's native storage instead of CML's. Not available on GitHub. -
--url=<...>: Use a custom storage URL instead of asset.cml.dev. Seeminroud-s3for a reference implementation.
Examples
To render an image in a Markdown file:
$ cml publish ./plot.png --md >> report.md