Skip to content

Commit

Permalink
workflow for compiling main tex file
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinsdavies committed Jan 5, 2024
1 parent 3e21aba commit f7a15ae
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-latex.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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='[email protected]' 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

0 comments on commit f7a15ae

Please sign in to comment.