-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (46 loc) · 1.22 KB
/
compile.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
name: LaTeX build
on:
push:
tags:
- "*"
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: texlive/texlive:latest
steps:
- name: Install prerequisites
run: apt-get update && apt-get install -y ghostscript
- name: Checkout repository
uses: actions/checkout@v2
- name: Compile the document
run: |
latex main.tex
makeindex main
latex main.tex
dvips main.dvi
dvipdf main.dvi kontinuerlig.pdf
sh ./ps2book.sh main.ps
ps2pdf main_book.ps sangbog.pdf
- name: Upload songbook (booklet)
uses: actions/upload-artifact@v2
with:
name: Sangbog
path: sangbog.pdf
- name: Upload songbook (continuous)
uses: actions/upload-artifact@v2
with:
name: Kontinuerlig
path: kontinuerlig.pdf
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
sangbog.pdf
kontinuerlig.pdf