-
Notifications
You must be signed in to change notification settings - Fork 2
87 lines (70 loc) · 1.95 KB
/
build_pdfs.yaml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
on:
push:
pull_request:
name: Build PDF documents
jobs:
build_pdf:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Setup pandoc
uses: nikeee/setup-pandoc@v1
#- name: Setup TeX Live
# uses: teatimeguest/setup-texlive-action@v2
- name: Install pdflatex, from https://gist.github.com/rain1024/98dd5e2c6c8c28f9ea9d
run: |
sudo apt-get install texlive-latex-base
sudo apt-get install texlive-fonts-recommended
sudo apt-get install texlive-fonts-extra
sudo apt-get install texlive-latex-extra
- name: Install pdfunite
run: sudo apt-get install poppler-utils
- name: Install bookletimposer
run: sudo apt-get install bookletimposer
- name: Remove old PDFs
run: |
cd boecker
rm *.pdf
cd ..
- name: Create front pages
run: |
cd scripts
./goera_framsidor.sh
cd ..
- name: Show front pages
run: |
cd boecker
ls *.pdf
cd ..
- name: Create books
run: |
cd scripts
./goera_bok_1.sh
./goera_bok_2.sh
./goera_bok_3.sh
./goera_bok_4.sh
./goera_bok_5.sh
./goera_bok_6.sh
./goera_bok_7.sh
./goera_bok_8.sh
./goera_test_bok.sh
./goera_bok_installera.sh
cd ..
- name: Show books
run: |
cd boecker
ls *.pdf
cd ..
- name: Zip books
run: |
cd boecker
zip processing_foer_undomar_boecker.zip *.pdf
cd ..
- name: Upload PDF to the workflow tab
uses: actions/upload-artifact@v2
with:
name: processing_foer_ungdomar_boecker.zip
path: boecker/processing_foer_undomar_boecker.zip