Skip to content

Add LaTeX file for PDF generation #19

Add LaTeX file for PDF generation

Add LaTeX file for PDF generation #19

Workflow file for this run

name: Generate PDF with XeLaTeX
on:
workflow_dispatch:
push:
branches:
- v2
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: v2
- name: Set up LaTeX environment
run: sudo apt-get update && sudo apt-get install -y texlive-xetex texlive-fonts-recommended texlive-plain-generic
- name: Ensure upload directory exists
run: mkdir -p NextJS-App/resgen/uploads
- name: Compile LaTeX to PDF
run: |
cd NextJS-App/resgen/uploads
xelatex -interaction=nonstopmode resume_output.tex || true
- name: Upload PDF artifact
uses: actions/upload-artifact@v3
with:
name: compiled-pdf
path: NextJS-App/resgen/uploads/resume_output.pdf