keep trying to fix resume updater #6
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 and Deploy Resume PDF | |
| on: | |
| push: | |
| paths: | |
| - '_latex/resume.tex' | |
| - '.github/workflows/latex-to-pdf.yml' | |
| - 'assets/pdfs/**' | |
| - '_latex/**' | |
| - 'README.md' | |
| - '_config.yml' | |
| - 'index.html' | |
| - '_data/navigation.yml' | |
| - '_pages/resume.md' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up LaTeX | |
| uses: dante-ev/latex-action@2025-A | |
| with: | |
| root_file: _latex/resume.tex | |
| work_in_root_file_dir: true | |
| - name: Copy PDF to assets/pdfs | |
| run: | | |
| mkdir -p assets/pdfs | |
| cp resume.pdf assets/pdfs/resume.pdf | |
| - name: Commit and push PDF | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }} | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }} | |
| git add assets/pdfs/resume.pdf | |
| git commit -m "Auto-update resume.pdf from LaTeX source" || echo "No changes to commit" | |
| git push |