diff --git a/.forgejo/workflows/tex-build.yml b/.forgejo/workflows/tex-build.yml index 0a110d8..ad79e93 100644 --- a/.forgejo/workflows/tex-build.yml +++ b/.forgejo/workflows/tex-build.yml @@ -22,8 +22,12 @@ jobs: - name: compile LaTeX document run: | - pdflatex -interaction=nonstopmode main.tex - pdflatex -interaction=nonstopmode main.tex + pdflatex -interaction=nonstopmode main.tex || true + pdflatex -interaction=nonstopmode main.tex || true + if [ ! -f main.pdf ]; then + echo "PDF was not generated." + exit 1 + fi - name: capture PDF artifact uses: https://code.forgejo.org/forgejo/upload-artifact@v4