diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddaa0e79c..1774fefff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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