This action lets you use pandoc, the swiss army knife of document conversion.
It is based on the pandoc/latex
docker image and thus ships with LaTeX, so you can also convert right through to PDF.
The action currently uses pandoc 2.6 and will be upgrade periodically.
None.
-
OUT_DIR
(optional) a path relative fromworkspace/github
(~ your repository root) without trailing slash.It's often useful to have pandoc output to a separate directory, for example for easier deployment. You can create such a directory using the
OUT_DIR
environment variable.If you've set it, the directory will be
mkdir
ed. Remember to point the output argument of your pandoc call in theargs
section to this new directory.
All arguments get appended to the pandoc
command.
This is the action block used to render the website for this action.
action "Convert" {
uses = "maxheld83/[email protected]"
env = {
OUT_DIR = "public"
}
args = [
"--standalone",
"--output=public/index.html",
"README.md"
]
}