Skip to content

Commit

Permalink
dynamically generate pdfs for all locales
Browse files Browse the repository at this point in the history
  • Loading branch information
drik98 committed Aug 1, 2024
1 parent a2a7e67 commit fa6a84c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,23 @@ jobs:
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Compile LaTeX document (de)
uses: xu-cheng/latex-action@v3
- name: Install dependencies
run: npm install
- name: Generate localized LaTeX templates
run: npm run generate-latex
- name: Upload generated LaTeX templates
uses: actions/upload-artifact@v4
with:
root_file: cv/cv_hendrik_schmitz_de.tex
continue_on_error: "true"
env:
TEXINPUTS: ".:./cv//:"
- name: Compile LaTeX document (en)
name: latex-templates
path: cv/cv_hendrik_schmitz_*.tex
- name: Compile LaTeX documents
uses: xu-cheng/latex-action@v3
with:
root_file: cv/cv_hendrik_schmitz_en.tex
root_file: cv/cv_hendrik_schmitz_*.tex
continue_on_error: "true"
env:
TEXINPUTS: ".:./cv//:"
- name: Upload PDF files
- name: Upload generated PDF files
uses: actions/upload-artifact@v4
with:
name: cvs
Expand All @@ -29,8 +31,6 @@ jobs:
run: |
mkdir -p public
cp -R *.pdf public/
- name: Install dependencies
run: npm install
- name: Build Next.js app
run: npm run build
- name: Deploy to Netlify
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"private": true,
"scripts": {
"dev": "next dev",
"prebuild": "ts-node --project ./tsconfig.node.json -r tsconfig-paths/register ./cv/generate-tex-files.ts",
"build": "next build && next-export-optimize-images",
"start": "serve out",
"lint": "next lint"
"lint": "next lint",
"generate-latex": "ts-node --project ./tsconfig.node.json -r tsconfig-paths/register ./cv/generate-tex-files.ts"
},
"dependencies": {
"bootstrap": "^3.3.7",
Expand Down

0 comments on commit fa6a84c

Please sign in to comment.