To use this action, you must include a copy of the plantuml.jar
file within the root directory of your repository.
You can get this file here at: https://sourceforge.net/projects/plantuml/files/plantuml.jar/download
Or run this curl command in your root directory:
curl -o plantuml.jar https://iweb.dl.sourceforge.net/project/plantuml/plantuml.jar
This action works by recursively searching for PlantUML files with the extension .pu
in a subdirectory named src
.
The found files are then generated as SVGs and placed in the output
directory.
The source and destination folders can be updated to your liking.
This is the main command:
java -jar plantuml.jar -v -tsvg -r -o "${{ github.workspace }}/output" "src/**.pu"
-v
gives a verbose output to the console.-tsvg
specifies to generate SVGs.-r
enables recursive search.-o
specifies an output directory.src/**.pu
looks for.pu
files in thesrc
directory recursively.
If an absolute output path is not specified, the output is always placed in the same directory as the source content.
In case there's latex needed, I used this.