From ab4eda1ae90a69e7d86b025e064885a70d01dbec Mon Sep 17 00:00:00 2001 From: Sam Cunliffe Date: Thu, 30 Nov 2023 17:01:21 +0000 Subject: [PATCH 1/5] First, worflow dispatch. --- .github/workflows/doc.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 49e5555a6..983e11ca9 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -5,6 +5,7 @@ on: - main paths: - 'doc/latex/**' + workflow_dispatch: jobs: build_latex: runs-on: ubuntu-latest From 49433658b37dbf9f6d27893c0262e0c675433391 Mon Sep 17 00:00:00 2001 From: Sam Cunliffe Date: Thu, 30 Nov 2023 17:05:09 +0000 Subject: [PATCH 2/5] Debugging. --- .github/workflows/doc.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 983e11ca9..bb75f2621 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -3,6 +3,7 @@ on: push: branches: - main + - 348-latex-doc-build-barf paths: - 'doc/latex/**' workflow_dispatch: From 73b37c1b654560e1849eb3def0bdcead2efeeed4 Mon Sep 17 00:00:00 2001 From: Sam Cunliffe Date: Thu, 30 Nov 2023 17:27:45 +0000 Subject: [PATCH 3/5] Flibble --- .github/workflows/doc.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index bb75f2621..019c3ae12 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -16,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 @@ -25,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 From a143a99489ad5ed27dc0971f3be19e4d227182a6 Mon Sep 17 00:00:00 2001 From: Sam Cunliffe Date: Thu, 30 Nov 2023 17:31:52 +0000 Subject: [PATCH 4/5] Flibble two electric boogaloo --- .github/workflows/doc.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 019c3ae12..e6457a267 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -4,8 +4,8 @@ on: branches: - main - 348-latex-doc-build-barf - paths: - - 'doc/latex/**' + # paths: + # - 'doc/latex/**' workflow_dispatch: jobs: build_latex: From 66c554aea57fffe758792dc620dbc3909741fe42 Mon Sep 17 00:00:00 2001 From: Sam Cunliffe Date: Thu, 30 Nov 2023 17:38:44 +0000 Subject: [PATCH 5/5] Run on pushes to main And on pull requests that edit the latex src files. --- .github/workflows/doc.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index e6457a267..afbc03cd1 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -3,9 +3,9 @@ on: push: branches: - main - - 348-latex-doc-build-barf - # paths: - # - 'doc/latex/**' + pull_request: + paths: + - 'doc/latex/**' workflow_dispatch: jobs: build_latex: