Skip to content

Commit 5685e29

Browse files
committed
Restructure Actions
1 parent dd050b3 commit 5685e29

2 files changed

Lines changed: 39 additions & 4 deletions

File tree

.github/workflows/generatePdf.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# GitHub Action, die aus den LiaScript-Materialien des Wintersemester 2020/21 ein
22
# Skript generiert
33

4-
name: GeneratePdf
4+
name: GenerateTex
55

66
on:
77
push:
@@ -31,9 +31,6 @@ jobs:
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:

0 commit comments

Comments
 (0)