Skip to content

Commit dbdee0e

Browse files
committed
Adapts Action tool-chain
1 parent a0acac7 commit dbdee0e

2 files changed

Lines changed: 31 additions & 40 deletions

File tree

.github/workflows/generatePdf.yml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- master
1010

1111
jobs:
12-
convert_via_pandoc:
12+
convert_via_pdf:
1313
runs-on: ubuntu-18.04
1414
container:
1515
image: docker://mirisbowring/texlive_ctan_full:2019
@@ -34,5 +34,34 @@ jobs:
3434
# Speichern als Artifact
3535
- uses: actions/upload-artifact@master
3636
with:
37-
name: output
37+
name: pdf
38+
path: output
39+
40+
jobs:
41+
convert_to_tex:
42+
runs-on: ubuntu-18.04
43+
container:
44+
image: docker://mirisbowring/texlive_ctan_full:2019
45+
steps:
46+
- name: Check out current repository
47+
uses: actions/checkout@v2
48+
with:
49+
ref: master
50+
# Ausführen des Parsers, der bestimmte Elemente im LiaCode entfernt
51+
- name: Run preprocessing
52+
run : |
53+
mkdir output
54+
python3 .github/workflows/preprocessing.py
55+
# Installation der notwendigen Pandoc tools
56+
- name: Install pandoc
57+
run: |
58+
sudo apt install pandoc
59+
# Generierungsprozess
60+
- name: Run pandoc markdown to tex
61+
run: |
62+
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
63+
# Speichern als Artifact
64+
- uses: actions/upload-artifact@master
65+
with:
66+
name: tex
3867
path: output

.github/workflows/generateTex.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)