Skip to content

Commit

Permalink
Fix LaTeX build config. (#349)
Browse files Browse the repository at this point in the history
* First, worflow dispatch.

* Debugging.

* Flibble

* Flibble two electric boogaloo

* Run on pushes to main

And on pull requests that edit the latex src files.
  • Loading branch information
samcunliffe authored Dec 1, 2023
1 parent 76b005f commit f504e3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ on:
push:
branches:
- main
pull_request:
paths:
- 'doc/latex/**'
workflow_dispatch:
jobs:
build_latex:
runs-on: ubuntu-latest
Expand All @@ -14,7 +16,7 @@ jobs:
with:
ref: ${{ github.head_ref }}
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
uses: xu-cheng/latex-action@v3
with:
root_file: masterdoc.tex
working_directory: doc/latex
Expand All @@ -23,7 +25,7 @@ jobs:
mv doc/latex/masterdoc.pdf .
ls | grep -xv "masterdoc.pdf" | xargs rm -rf
- name: Commit documentation
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Build documentation
branch: gh-doc
Expand Down

0 comments on commit f504e3a

Please sign in to comment.