Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a workflow to build the book #226

Open
MHenderson opened this issue Jul 15, 2024 · 3 comments
Open

Add a workflow to build the book #226

MHenderson opened this issue Jul 15, 2024 · 3 comments

Comments

@MHenderson
Copy link
Owner

Can we add a link to the resulting PDF in the README?

Instead of using the existing Makefile targets, it probably makes sense to create new targets just for building as part of a workflow.

@MHenderson
Copy link
Owner Author

First add an install target to the Makefile:

sudo apt install texlive texlive-science texlive-latex-extra latexmk

@MHenderson
Copy link
Owner Author

@MHenderson
Copy link
Owner Author

I used to use this workflow:

name: Build LaTeX document

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

jobs:
  build_latex:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Github Action for LaTeX
        uses: xu-cheng/latex-action@v2
        with:
          root_file: room.tex
          latexmk_use_xelatex: true
      - name: Upload PDF file
        uses: actions/upload-artifact@v3
        with:
          name: room.pdf
          path: room.pdf

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

No branches or pull requests

1 participant