Skip to content

Merge pull request #54 from CaptnNiveau/master #150

Merge pull request #54 from CaptnNiveau/master

Merge pull request #54 from CaptnNiveau/master #150

Workflow file for this run

# GitHub Action, die aus den LiaScript-Materialien des Wintersemester 2021/22 ein
# Skript generiert
name: GeneratePdf
on:
push:
branches:
- master
jobs:
convert_via_pdf:
runs-on: ubuntu-20.04
container:
image: docker://mirisbowring/texlive_ctan_full:2019
steps:
- name: Check out current repository
uses: actions/checkout@v2
with:
ref: master
# Ausführen des Parsers, der bestimmte Elemente im LiaCode entfernt
- name: Run preprocessing
run : |
mkdir output
python3 .github/workflows/preprocessing.py
# Installation der notwendigen Pandoc tools
- name: Install pandoc
run: |
sudo apt install pandoc
# Generierungsprozess
- name: Run pandoc markdown to pdf
run: |
pandoc --toc -N --top-level-division=chapter -H .github/workflows/head.tex -V linkcolor:blue --pdf-engine=xelatex --listings --include-in-header=.github/workflows/listings.tex -o output/script.pdf *.mdx
# Speichern als Artifact
- uses: actions/upload-artifact@master
with:
name: pdf
path: output
convert_to_tex:
runs-on: ubuntu-20.04
container:
image: docker://mirisbowring/texlive_ctan_full:2019
steps:
- name: Check out current repository
uses: actions/checkout@v2
with:
ref: master
# Ausführen des Parsers, der bestimmte Elemente im LiaCode entfernt
- name: Run preprocessing
run : |
mkdir output
python3 .github/workflows/preprocessing.py
# Installation der notwendigen Pandoc tools
- name: Install pandoc
run: |
sudo apt install pandoc
# Generierungsprozess
- name: Run pandoc markdown to tex
run: |
pandoc --toc --top-level-division=chapter -V linkcolor:blue --pdf-engine=xelatex --listings --include-in-header=.github/workflows/listings.tex -f markdown -t latex -o output/script.tex *.mdx
# Speichern als Artifact
- uses: actions/upload-artifact@master
with:
name: tex
path: output