Skip to content

Merge branch 'main' of https://github.com/chirag127/oriz-me #9

Merge branch 'main' of https://github.com/chirag127/oriz-me

Merge branch 'main' of https://github.com/chirag127/oriz-me #9

name: build-resume-pdf
on:
push:
branches: [main]
paths:
- 'public/resume/chirag-singhal-resume.typ'
- '.github/workflows/build-resume-pdf.yml'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Typst
uses: typst-community/setup-typst@v4
- name: Compile resume PDF
working-directory: public/resume
run: |
typst compile chirag-singhal-resume.typ chirag-singhal-resume.pdf
test -f chirag-singhal-resume.pdf
- name: Commit PDF
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add public/resume/chirag-singhal-resume.pdf
git diff --staged --quiet || git commit -m "chore(resume): rebuild PDF from Typst source [skip ci]"
git push