Skip to content

wf

wf #32

Workflow file for this run

name: LateX to PDF
on:
push:
branches:
- main
- develop
- ops
tags:
- '*'
pull_request:
branches: [ main ]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Compile LaTeX to PDF
run: docker run --rm -i -v $(pwd):/data mingc/latex pdflatex main.tex
- name: Rename PDF with date
run: mv main.pdf resume-${{ env.date }}.pdf
- name: Upload PDF to the workflow tab
id: upload-workflow-tab
uses: actions/upload-artifact@v4
with:
name: output
path: resume-${{ env.date }}.pdf