-
Notifications
You must be signed in to change notification settings - Fork 7
60 lines (49 loc) · 1.6 KB
/
main.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
on:
workflow_call:
inputs:
bookname:
description: 'Filename of the book to be built (e.g. mybook)'
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest
env:
TEXLIVE_RELEASE: '2023'
steps:
- uses: actions/checkout@v3
- name: Set PATH
run: |
echo "${{ github.workspace }}/build" >> $GITHUB_PATH
echo "$HOME/texlive/bin/x86_64-linux" >> $GITHUB_PATH
- name: Prepare Pillar
run: |
git clone https://github.com/pillar-markup/pillar.git -b v10.2.0
./pillar/scripts/build.sh
- name: Prepare TeXlive
run: |
./_support/latex/sbabook/ci/install-texlive
- name: Install SBA TeXlive Dependencies
run: |
tlmgr install bibtex
- name: Install SBA TeXlive Dependencies
run: |
xargs tlmgr install < ./_support/latex/sbabook/texlive.deps
- name: Install Pillar Template TeXlive Dependencies
run: |
xargs tlmgr install < ./_support/latex/texlive.deps
- name: Build PDF
run: |
pillar build pdf index.*
mkdir -p artifacts
mv _result/pdf/index.pdf "artifacts/${{ inputs.bookname }}.pdf"
- name: Continuous Release
if: ${{ github.event_name == 'push' }}
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
artifacts/*.pdf