mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 14:35:23 +02:00
ci: generate PDF version of tldr pages
This commit is contained in:
parent
395351ad7e
commit
1d2b4242c8
1 changed files with 13 additions and 0 deletions
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
|
@ -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…
Add table
Reference in a new issue