Merge branch 'main' of https://github.com/chirag127/oriz-me #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |