Add github workflow to compile cv #5
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
name: Compile CV | |
on: | |
push: | |
branches: | |
- main | |
# Allows to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: xu-cheng/latex-action@v3 | |
with: | |
root_file: maxbothe-cv-en.tex | |
working_directory: src | |
latexmk_use_xelatex: true | |
- name: Copy PDF | |
run: cp src/maxbothe-cv-en.pdf dist/maxbothe-cv.pdf | |
- name: Publish | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: dist | |
FOLDER: dist | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SQUASH_HISTORY: true | |
SKIP_EMPTY_COMMITS: true |