Skip to content

Oct 8 minutes

Oct 8 minutes #46

Workflow file for this run

name: Build LaTeX document
on: [push]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v1
- name: Compile LaTeX document
uses: xu-cheng/latex-action@master
with:
root_file: ms.tex
working_directory: Notation
- name: Rename file and turn on colored mode
run: |
mv Notation/ms.pdf Notation/lagraph.pdf
touch Notation/colored.tex
- name: Compile LaTeX document
uses: xu-cheng/latex-action@master
with:
root_file: ms.tex
working_directory: Notation
- name: Rename file and turn on ascii mode
run: |
mv Notation/ms.pdf Notation/lagraph-colored.pdf
touch Notation/ascii.tex
- name: Compile LaTeX document
uses: xu-cheng/latex-action@master
with:
root_file: ms.tex
working_directory: Notation
- name: Rename file and turn off colored mode
run: |
mv Notation/ms.pdf Notation/lagraph-ascii-colored.pdf
rm Notation/colored.tex
- name: Compile LaTeX document
uses: xu-cheng/latex-action@master
with:
root_file: ms.tex
working_directory: Notation
- name: Install and Build 🔧
run: |
cp Notation/ms.pdf Notation/lagraph-ascii.pdf
mkdir build
mv Notation/lagraph*.pdf build/
mv Notation/README.md build/
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: compiled-pdf
folder: build
if: github.event_name == 'push' && github.ref == 'refs/heads/master'