Skip to content

Commit

Permalink
test generowania pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
MacDada committed May 21, 2023
1 parent d8bc8c3 commit a648d97
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/convert-to-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ jobs:
# Default is true, can set to false to only get PDF files
build_html: false
build_pdf: true
- name: Install wkhtmltopdf
run: sudo apt-get install -y wkhtmltopdf
- name: Install fonts
run: sudo apt-get install -y fonts-dejavu-core
- name: Convert to PDF
run: |
cd wersje\ tekstowe
find . -name '*.md' -type f -exec sh -c 'wkhtmltopdf --enable-local-file-access --margin-top 0mm --margin-right 0mm --margin-bottom 0mm --margin-left 0mm --page-size A4 --no-background --no-outline --dpi 300 --footer-spacing 0 -T 0mm -R 0mm -B 0mm -L 0mm --header-spacing 0 -t pdf --encoding utf-8 --quiet --quiet "{}" "../wersje pdf/{}.wk.pdf"' \;
- name: GIT commit+push wygenerowane pliki PDF
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
Expand Down

0 comments on commit a648d97

Please sign in to comment.