Updates from Overleaf #40
Workflow file for this run
This file contains 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
# 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 "yamank@iiitd.ac.in" | |
git add main.pdf | |
git commit -m "Updated thesis [skip ci]" | |
git push | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' |