-
Notifications
You must be signed in to change notification settings - Fork 19
147 lines (134 loc) · 5.29 KB
/
release.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
name: "Build Release"
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-22.04
name: "Build PDFs for all Books"
steps:
- name: "Checkout repository"
uses: actions/checkout@v1
with:
submodules: recursive
- name: "Install abcm2ps"
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y make gcc libc6-dev
wget https://github.com/leesavide/abcm2ps/archive/v8.14.15.tar.gz -O abcm2ps-8.14.15.tar.gz
tar -xf abcm2ps-8.14.15.tar.gz
cd abcm2ps-8.14.15/
./configure
sudo make install
- name: "Install LaTeX and dependencies"
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y texlive-latex-base texlive-latex-extra texlive-fonts-recommended texlive-extra-utils texlive-lang-german xzdec ghostscript make lua5.3
- run: make Ausgaben/PfadiralalaIV.pdf
- run: make Ausgaben/PfadiralalaIV-pics.pdf
- run: make Ausgaben/PfadiralalaIV-print.pdf
- run: make Noten
- run: make Ausgaben/PfadiralalaIVplus.pdf
- run: make Ausgaben/PfadiralalaIVplus-pics.pdf
- run: make Ausgaben/PfadiralalaIVplus-print.pdf
- run: make Ausgaben/Pfadiralala2023.pdf
- run: make Ausgaben/Pfadiralala2023-pics.pdf
- run: make Ausgaben/Pfadiralala2023-print.pdf
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: logfiles
path: |
Ausgaben/*.log
- name: Create Release
id: create_release
uses: actions/create-release@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: true
- name: Upload PfadiralalaIV.pdf
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/PfadiralalaIV.pdf
asset_name: PfadiralalaIV.pdf
asset_content_type: application/pdf
- name: Upload PfadiralalaIV-pics.pdf
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/PfadiralalaIV-pics.pdf
asset_name: PfadiralalaIV-pics.pdf
asset_content_type: application/pdf
- name: Upload PfadiralalaIV-print.pdf
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/PfadiralalaIV-print.pdf
asset_name: PfadiralalaIV-print.pdf
asset_content_type: application/pdf
- name: Upload PfadiralalaIVplus.pdf
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/PfadiralalaIVplus.pdf
asset_name: PfadiralalaIVplus.pdf
asset_content_type: application/pdf
- name: Upload PfadiralalaIVplus-pics.pdf
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/PfadiralalaIVplus-pics.pdf
asset_name: PfadiralalaIVplus-pics.pdf
asset_content_type: application/pdf
- name: Upload PfadiralalaIVplus-print.pdf
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/PfadiralalaIVplus-print.pdf
asset_name: PfadiralalaIVplus-print.pdf
asset_content_type: application/pdf
- name: Upload Pfadiralala2023.pdf
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/Pfadiralala2023.pdf
asset_name: Pfadiralala2023.pdf
asset_content_type: application/pdf
- name: Upload Pfadiralala2023-pics.pdf
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/Pfadiralala2023-pics.pdf
asset_name: Pfadiralala2023-pics.pdf
asset_content_type: application/pdf
- name: Upload Pfadiralala2023-print.pdf
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/Pfadiralala2023-print.pdf
asset_name: Pfadiralala2023-print.pdf
asset_content_type: application/pdf