From f7a15aedce0f7e879acd2b6b26efb136ab447c67 Mon Sep 17 00:00:00 2001 From: "Gavin S. Davies" Date: Fri, 5 Jan 2024 14:44:29 -0600 Subject: [PATCH] workflow for compiling main tex file --- .github/workflows/build-latex.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build-latex.yml diff --git a/.github/workflows/build-latex.yml b/.github/workflows/build-latex.yml new file mode 100644 index 0000000..d4991c2 --- /dev/null +++ b/.github/workflows/build-latex.yml @@ -0,0 +1,28 @@ +name: Build LaTeX document +on: + push: + branches-ignore: + - 'orphan/pdflatex' +jobs: + build_latex: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v3 + - name: GitHub Action for LaTeX + uses: xu-cheng/latex-action@3.1.0 + with: + root_file: | + gavinsdavies.tex + - name: Orphan branch commit + run: + git checkout --orphan orphan/pdflatex + git rm -rf . + git add gavinsdavies.pdf + git -c user.name='GitHub Action' -c user.email='action@github.com' commit -m "Compiled and built pdf version of cv." + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: orphan/pdflatex + force: true \ No newline at end of file