Add GitHub Action for LaTeX processing #2
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 LaTeX CV | |
| on: | |
| push: | |
| branches: ["master"] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Compile LaTeX document | |
| uses: xu-cheng/latex-action@v4 | |
| with: | |
| root_file: cv_eng.tex | |
| - name: Move latest tag to current commit | |
| run: | | |
| git tag -f latest | |
| git push origin latest --force | |
| - name: Create or update latest release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: latest | |
| name: Latest CV | |
| body: "Built automatically from commit ${{ github.sha }}." | |
| files: cv_eng.pdf | |
| make_latest: true |