File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # GitHub Action, die aus den LiaScript-Materialien des Wintersemester 2020/21 ein
2+ # Skript generiert
3+
4+ name : GeneratePdf
5+
6+ on :
7+ push :
8+ branches :
9+ - master
10+
11+ jobs :
12+ convert_via_pandoc :
13+ runs-on : ubuntu-18.04
14+ container :
15+ image : docker://mirisbowring/texlive_ctan_full:2019
16+ steps :
17+ - name : Check out current repository
18+ uses : actions/checkout@v2
19+ with :
20+ ref : master
21+ # Ausführen des Parsers, der bestimmte Elemente im LiaCode entfernt
22+ - name : Run preprocessing
23+ run : |
24+ mkdir output
25+ python3 .github/workflows/preprocessing.py
26+ # Installation der notwendigen Pandoc tools
27+ - name : Install pandoc
28+ run : |
29+ sudo apt install pandoc
30+ # Generierungsprozess
31+ - name : Run pandoc markdown to pdf
32+ run : |
33+ pandoc --toc --top-level-division=chapter -V linkcolor:blue --pdf-engine=xelatex --listings --include-in-header=.github/workflows/listings.tex -o output/script.pdf *.mdx
34+ # Speichern als Artifact
35+ - uses : actions/upload-artifact@master
36+ with :
37+ name : output
38+ path : output
Original file line number Diff line number Diff line change 11# GitHub Action, die aus den LiaScript-Materialien des Wintersemester 2020/21 ein
22# Skript generiert
33
4- name : GeneratePdf
4+ name : GenerateTex
55
66on :
77 push :
3131 - name : Run pandoc markdown to tex
3232 run : |
3333 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
34- - name : Run pandoc markdown to pdf
35- run : |
36- pandoc --toc --top-level-division=chapter -V linkcolor:blue --pdf-engine=xelatex --listings --include-in-header=.github/workflows/listings.tex -o output/script.pdf *.mdx
3734 # Speichern als Artifact
3835 - uses : actions/upload-artifact@master
3936 with :
You can’t perform that action at this time.
0 commit comments