Skip to content

Commit

Permalink
objectionary#2696 publish both ENBFs
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 11, 2023
1 parent 2cacf0e commit 1ae78c7
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ebnf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ae78c7

Please sign in to comment.