Skip to content

Commit

Permalink
Add github workflow to compile cv
Browse files Browse the repository at this point in the history
  • Loading branch information
mathebox committed Jan 25, 2025
1 parent 8d11607 commit 9207910
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/compile-cv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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: |
mkdir -p dist
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

0 comments on commit 9207910

Please sign in to comment.