-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplifier cant process svg, just png
- Loading branch information
1 parent
3d2d099
commit 69b9547
Showing
2 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
sudo apt-get install -y graphviz | ||
wget -O plantuml.jar "https://github.com/plantuml/plantuml/releases/latest/download/plantuml.jar" | ||
- name: Render and Move SVG files | ||
- name: Render and Move PNG files | ||
run: | | ||
# Find all unique directories containing *.puml files under any /imgsrc/ folder | ||
directories=$(find . -path "*/imgsrc/*/*.puml" -exec dirname {} \; | sort -u) | ||
|
@@ -32,11 +32,11 @@ jobs: | |
out_dir=ImplementationGuide/images/diagrams | ||
mkdir -p $out_dir | ||
# Render SVGs from PUMLs | ||
find $dir -name "*.puml" -exec java -jar plantuml.jar -tsvg {} \; | ||
# Render PNGs from PUMLs | ||
find $dir -name "*.puml" -exec java -jar plantuml.jar -tpng {} \; | ||
|
||
# Move SVGs to out directory | ||
find $dir -name "*.svg" -exec mv {} $out_dir \; | ||
# Move PNGs to out directory | ||
find $dir -name "*.png" -exec mv {} $out_dir \; | ||
done | ||
|
||
|
||
|
@@ -57,7 +57,7 @@ jobs: | |
# git config --local user.email "[email protected]" | ||
# git config --local user.name "GitHub Action" | ||
# git add -A | ||
# git commit -m "Add rendered PlantUML to SVG diagrams" || exit 0 | ||
# git commit -m "Add rendered PlantUML to PNG diagrams" || exit 0 | ||
# git push | ||
|
||
- name: Commit rendered files | ||
|