mirror of https://github.com/CrimsonTome/tldr.git
ci: generate PDF version of tldr pages
parent
395351ad7e
commit
1d2b4242c8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue