-
Notifications
You must be signed in to change notification settings - Fork 32
executable file
·67 lines (62 loc) · 2.12 KB
/
generatePdf.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# 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