Skip to content

Merge overleaf-2024-01-08-0434 into main #18

Merge overleaf-2024-01-08-0434 into main

Merge overleaf-2024-01-08-0434 into main #18

# This is a basic workflow to help you get started with Actions
name: Build Latex Document
# Controls when the workflow will run
on: [push]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build_latex:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
extra_fonts: NotoSerifDevanagari.ttf
latexmk_use_xelatex: true
- name: Upload the thesis document
uses: actions/upload-artifact@v3
with:
name: PDF
path: main.pdf
- name: Check pdf file
run: |
file main.pdf | grep -q ' PDF '
- name: Upload file to repository
run: |
git config --global user.name "yamanksingla"
git config --global user.email "[email protected]"
git add main.pdf
git commit -m "Updated thesis [skip ci]"
git push
if: github.event_name == 'push' && github.ref == 'refs/heads/main'