forked from objectionary/eo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
objectionary#2696 publish both ENBFs
- Loading branch information
Showing
1 changed file
with
9 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,14 +44,15 @@ jobs: | |
"-Dantlr2ebnf.margin=40" | ||
- run: | | ||
set -x | ||
cp eo-parser/target/ebnf/org/eolang/parser/Program.pdf . | ||
pdfcrop --margins '10 10 10 10' Program.pdf crop.pdf | ||
pdf2svg crop.pdf ebnf.svg | ||
convert -density 300 -quality 100 -transparent white -colorspace RGB crop.pdf ebnf.png | ||
ls -al | ||
mkdir gh-pages | ||
cp ebnf.png gh-pages | ||
cp ebnf.svg gh-pages | ||
for p in Program Phi; do | ||
cp "eo-parser/target/ebnf/org/eolang/parser/${p}.pdf" . | ||
pdfcrop --margins '10 10 10 10' "${p}.pdf" "${p}-cropped.pdf" | ||
pdf2svg "${p}-cropped.pdf" "${p}.svg" | ||
convert -density 300 -quality 100 -transparent white -colorspace RGB "${p}-cropped.pdf" "${p}.png" | ||
mkdir -p gh-pages/ebnf | ||
cp "${p}.png" gh-pages/ebnf | ||
cp "${p}.svg" gh-pages/ebnf | ||
done | ||
- uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
|