diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..9f86fe4 --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,23 @@ +name: Validate LaTeX Document +on: + pull_request: + branches: + - main +jobs: + build_latex: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v3 + - name: Build book + uses: xu-cheng/texlive-action/full@v1 + with: + run: | + apk add make + cd book + make all + - name: Upload PDF + uses: actions/upload-artifact@v3 + with: + name: PDF + path: book/book.pdf