Skip to content

Add github workflow to compile cv #13

Add github workflow to compile cv

Add github workflow to compile cv #13

Workflow file for this run

name: Build PDF
on:
push:
branches:
- main
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
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:
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: maxbothe-cv.pdf
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v3
# with:
# # Upload entire repository
# path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
# - name: Bypass Jekyll
# run: touch .nojekyll
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v4
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}