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 26, 2025
1 parent 8d11607 commit 94d28f1
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build-pdf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build PDF

on:
push:
branches:
- main

jobs:
build:
name: Build PDF
runs-on: ubuntu-latest
container:
image: ghcr.io/moderncv/debian-texlive-docker:main
steps:
- uses: actions/checkout@v4
- name: Build PDF
run: |
latexmk -pdf -cd ./src/maxbothe-cv-en.tex
# - name: Copy PDF
# run: |
# ls -R
# mkdir dist
# cp ./src/maxbothe-cv-en.pdf ./dist/maxbothe-cv.pdf
# ls -R
- name: Upload PDF
uses: actions/upload-artifact@v4
with:
name: maxbothe-cv.pdf
path: ./maxbothe-cv.pdf
deploy:
name: Deploy PDF on Github Pages
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v4
with:
name: maxbothe-cv.pdf
- name: Bypass Jekyll
run: touch .nojekyll
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 94d28f1

Please sign in to comment.