Skip to content

Commit

Permalink
ci: Fix GitHub documentation workflow for PDFs
Browse files Browse the repository at this point in the history
We were missing latexmk dependencies, and the build-docs.sh
script was using the incorrect target (latexpdf generates
the actual PDF attached in the docs).
  • Loading branch information
lkedziora committed Jul 30, 2024
1 parent 16719f3 commit 5473dab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/scripts/build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ set -e

cd "$(dirname $0)/../../documentation/"
pip3 install -r requirements.txt
make html latex
make html
LATEXMKOPTS='-interaction=nonstopmode' make latexpdf

6 changes: 5 additions & 1 deletion .github/workflows/build-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
with:
python-version: "3.11"

- name: Install documentation dependencies
run: |
apt update && apt install -qqy texlive texlive-latex-recommended texlive-latex-extra texlive-fonts-extra latexmk
- name: Install and configure Poetry
uses: snok/install-poetry@v1

Expand All @@ -36,7 +40,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: Documentation
path: documentation/build/html
path: documentation/build/

- name: Deploy
if: github.ref == 'refs/heads/main'
Expand Down

0 comments on commit 5473dab

Please sign in to comment.