Build documentation PDFs #286
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build documentation PDFs | |
on: | |
schedule: | |
- cron: "0 5 * * 1,4" | |
workflow_dispatch: | |
jobs: | |
build_docs_pdfs: | |
name: Build documentation PDFs | |
runs-on: ubuntu-latest | |
env: | |
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.9" | |
architecture: "x64" | |
cache: pip | |
- run: pip install -r requirements-dev.txt | |
- name: Setup Latex | |
run: sudo apt-get install texlive-xetex texlive-fonts-recommended texlive-fonts-extra | |
- name: Docs pre-build | |
run: invoke rtd-pre-build | |
- name: Build PDF and push to S3 | |
run: invoke docs-build --pdf --upload |