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 985ffdc
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 1 deletion.
81 changes: 81 additions & 0 deletions .github/workflows/build-pdf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
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:
runs-on: ubuntu-latest
container:
image: ghcr.io/moderncv/debian-texlive-docker:main
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build PDF
run: |
latexmk -pdf -cd ./src/maxbothe-cv.tex
ls -R
# - name: Copy PDF
# run: |
# ls -R
# mkdir dist
# cp ./src/maxbothe-cv.pdf ./dist/maxbothe-cv.pdf
# ls -R
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./src/maxbothe-cv.pdf
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
# deploy:
# 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 }}
# publish_dir: .


1 change: 0 additions & 1 deletion maxbothe-cv.pdf

This file was deleted.

Binary file removed src/maxbothe-cv-en.pdf
Binary file not shown.
File renamed without changes.

0 comments on commit 985ffdc

Please sign in to comment.