-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.24 KB
/
action.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
name: Deploy handbook
on:
push:
branches: main
tags:
- v*
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Working directory check
run: |
pwd
ls
- name: Install Pandoc
uses: r-lib/actions/setup-pandoc@v2
- name: Install XeLaTeX
run: sudo apt-get update && sudo apt-get install -y texlive-xetex
- name: Download lua-filter
run: wget https://raw.githubusercontent.com/pandoc/lua-filters/master/include-files/include-files.lua
- name: Verify dependencies
run: |
pandoc --version
xetex --version
ls include-files.lua
- name: Build
run: >-
pandoc
--lua-filter=include-files.lua
--metadata-file=./config/default.yaml
--pdf-engine=xelatex
--toc --number-sections
handbook.md -o graduate-handbook.pdf
- name: Verify build
run: ls graduate-handbook.pdf
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
graduate-handbook.pdf