Skip to content

Commit af6f426

Browse files
committed
attempt to generate PDF in releases
1 parent 5199c9e commit af6f426

6 files changed

Lines changed: 50 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build and Release PDF
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
16+
- name: Install SILE
17+
run: |
18+
sudo add-apt-repository -y ppa:sile-typesetter/sile
19+
sudo apt-get update
20+
sudo apt-get install -y sile luarocks fonts-sil-gentiumplus
21+
22+
- name: Install dependencies
23+
run: luarocks --lua-version $(sile -q <<< SILE.lua_version) --tree lua_modules install resilient.sile 3.4.0
24+
25+
- name: Build PDF
26+
# Twice as label references change after the first run.
27+
run: |
28+
sile --luarocks-tree lua_modules -u inputters.silm ddd-reference.silm
29+
sile --luarocks-tree lua_modules -u inputters.silm ddd-reference.silm
30+
31+
- name: Upload PDF as artifact
32+
uses: actions/upload-artifact@v6
33+
with:
34+
name: ddd-reference
35+
path: ddd-reference.pdf
36+
37+
- name: Update latest release
38+
uses: softprops/action-gh-release@v2
39+
with:
40+
tag_name: latest
41+
name: Latest Build
42+
body: Built from ${{ github.sha }}
43+
files: ddd-reference.pdf
44+
make_latest: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/ddd-reference.ref
44
/ddd-reference.toc
55
/embedded/
6+
/ddd-reference.pdf

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
install:
22
brew install sile
3-
luarocks --lua-version 5.1 --tree lua_modules install resilient.sile
3+
luarocks --lua-version 5.1 --tree lua_modules install resilient.sile 3.4.0
44
build:
55
sile -u inputters.silm ddd-reference.silm

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A summary of the patterns and definitions of DDD, typeset in an arguably neater fashion than the [original PDF.](https://www.domainlanguage.com/wp-content/uploads/2016/05/DDD_Reference_2015-03.pdf)
44

5-
Read it as a [PDF,](./ddd-reference.pdf) or refer to the `*.dj` files for the content in a Markdown-like lightweight markup.
5+
Read it as a [PDF,](https://github.com/ul/ddd-reference/releases/latest/download/ddd-reference.pdf) or refer to the `*.dj` files for the content in a Markdown-like lightweight markup.
66

77
I tried to be faithful to the original document both in terms of content and emphasis, but mistakes are unavoidable, and correction PRs are welcome.
88
I took the liberty, however, of replacing "Therefore:" paragraphs with the ∴ symbol used as a horizontal divider.

ddd-reference.pdf

-711 KB
Binary file not shown.

ddd-reference.silm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ book:
1313
enabled: true
1414
sile:
1515
packages:
16-
- fancytoc
16+
- resilient.fancytoc
17+
options:
18+
papersize: a4
1719
chapters:
1820
- frontmatter.sil
1921
- 00-acknowledgements.dj

0 commit comments

Comments
 (0)