-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow for compiling main tex file
- Loading branch information
1 parent
3e21aba
commit f7a15ae
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |