sb2nov / resume

Software developer resume in Latex
http://sourabhbajaj.com
MIT License
5.19k stars 1.46k forks source link

Suggestion: Add a GitHub Action to compile `resume.tex` #51

Open GiuseppeTT opened 1 year ago

GiuseppeTT commented 1 year ago

You can add a GitHub Action to compile sourabh_bajaj_resume.tex and upload the generated pdf everytime a change is made.

For instance, take the following file which would be available at .github/workflows/build-latex.yaml

# Based on: https://github.com/marketplace/actions/github-action-for-latex#example

name: Build LaTeX document

on:
  workflow_dispatch:
  push:
    branches:
      - main
  pull_request:

jobs:
  build-latex:
    runs-on: ubuntu-latest
    steps:
      - name: Set up Git repository
        uses: actions/checkout@v3

      - name: Compile LaTeX document
        uses: xu-cheng/latex-action@v2
        with:
          root_file: sourabh_bajaj_resume.tex

      - name: Upload PDF file
        uses: actions/upload-artifact@v3
        with:
          name: sourabh_bajaj_resume_${{ github.sha }}
          path: sourabh_bajaj_resume.pdf

I understand the suggestion might not be suitable for this particular repository, but it's been very useful for my private fork in which I made my resume using your LaTeX template. This way I can version control both resume.tex and resume.pdf while accounting for the fact that one is a function of the other.

sb2nov commented 3 months ago

Want to send a PR?