Merge pull request #1 from kristoferssolo/workflow

Added workflow
This commit is contained in:
Kristofers Solo 2023-09-15 12:43:30 +03:00 committed by GitHub
commit 64b2166e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
.github/workflows/latex.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Build LaTeX document
on:
push:
pull_request:
jobs:
build_latex:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: Mafia-the-Game.tex
latexmk_use_xelatex: true
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: "*.pdf"
commit_message: "chore(build): auto-generate pdf"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"