Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GiuseppeTT opened this issue Oct 26, 2022 · 0 comments
Open

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

GiuseppeTT opened this issue Oct 26, 2022 · 0 comments

Comments

@GiuseppeTT
Copy link

GiuseppeTT commented Oct 26, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant