ci: generate PDF version of tldr pages

This commit is contained in:
Owen Voke
2020-11-27 09:27:13 +00:00
committed by Starbeamrainbowlabs
parent 395351ad7e
commit 1d2b4242c8

View File

@@ -28,6 +28,19 @@ jobs:
- name: Build
run: bash scripts/build.sh
- name: Setup Python for PDF generation
if: github.repository == 'tldr-pages/tldr' && github.ref == 'refs/heads/master'
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Build PDF
if: github.repository == 'tldr-pages/tldr' && github.ref == 'refs/heads/master'
run: |
cd scripts/pdf/
pip3 install -r requirements.txt
python3 render.py ../../pages -c solarized-light
- name: Deploy
if: github.repository == 'tldr-pages/tldr' && github.ref == 'refs/heads/master'
run: bash scripts/deploy.sh