Skip to content

Update ipm.tex

Update ipm.tex #10

Workflow file for this run

name: Build LaTeX document
on:
push:
branches:
- master
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
build_latex:
runs-on: ubuntu-latest
env:
PAPER: "main"
steps:
- name: Set up Git repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Compile LaTeX document
id: compileLaTeXdocument
uses: xu-cheng/latex-action@v3
with:
root_file: |
${{ env.PAPER }}.tex
working_directory: tex
extra_system_packages: "git patch"
latexmk_shell_escape: true
pre_compile: git config --global --add safe.directory /github/workspace
continue-on-error: true
- name: Upload PDF
if: steps.compileLaTeXdocument.outcome == 'success'
uses: actions/upload-artifact@v3
with:
name: Success--Here-is-the-PDF
path: |
tex/${{ env.PAPER }}.pdf
- name: Upload build logs
if: steps.compileLaTeXdocument.outcome == 'failure'
uses: actions/upload-artifact@v3
with:
name: Build-Failed--Here-are-the-Logs
path: |
tex/**/*.log
- name: Fail job if build failed
if: steps.compileLaTeXdocument.outcome == 'failure'
run: exit 1