Skip to content

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

Open
@GiuseppeTT

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions