Skip to content

Fix GitHub Actions workflow for LaTeX PDF generation#2

Merged
py1sl merged 2 commits intomainfrom
copilot/set-up-github-action-pdf
Dec 29, 2025
Merged

Fix GitHub Actions workflow for LaTeX PDF generation#2
py1sl merged 2 commits intomainfrom
copilot/set-up-github-action-pdf

Conversation

Copy link
Contributor

Copilot AI commented Dec 29, 2025

The build_pdf.yml workflow was misconfigured and failing to build the LaTeX document.

Changes

  • Fixed compilation directory: Added working-directory: latex to run xelatex/bibtex in the correct location
  • Fixed artifact path: Changed upload path from lib.pdf to latex/lib.pdf
  • Updated action versions: Migrated from @v2 to @v4 for checkout and upload-artifact
  • Added missing packages: Installed texlive-bibtex-extra and bibtex2html for bibliography compilation
  • Added .gitignore: Excludes LaTeX build artifacts (*.aux, *.bbl, *.log, *.pdf)

Workflow now executes:

- name: Compile LaTeX document
  working-directory: latex
  run: |
    xelatex -interaction=nonstopmode -halt-on-error lib.tex
    bibtex lib
    xelatex -interaction=nonstopmode -halt-on-error lib.tex
    xelatex -interaction=nonstopmode -halt-on-error lib.tex

The generated PDF is uploaded as a workflow artifact for download.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Would like to set up a github action to build the latex document and make a pdf, build_pdf.yml is the file it should be doing that, not sure if it works


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: py1sl <1928511+py1sl@users.noreply.github.com>
Copilot AI changed the title [WIP] Set up GitHub action to build LaTeX document and create PDF Fix GitHub Actions workflow for LaTeX PDF generation Dec 29, 2025
Copilot AI requested a review from py1sl December 29, 2025 14:47
Copy link
Owner

@py1sl py1sl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worth a go

@py1sl py1sl marked this pull request as ready for review December 29, 2025 14:53
@py1sl py1sl merged commit 976dcdf into main Dec 29, 2025
1 check failed
@py1sl py1sl deleted the copilot/set-up-github-action-pdf branch December 29, 2025 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants