Skip to content

Commit da43edf

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

5 files changed

Lines changed: 42 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
container:
14+
image: siletypesetter/sile:latest
15+
steps:
16+
- uses: actions/checkout@v6
17+
18+
- name: Install dependencies
19+
run: |
20+
pacman -Sy --noconfirm archlinux-keyring && pacman -S --noconfirm --overwrite '/usr/lib/libgcc*' --overwrite '/usr/lib/libstdc++*' --overwrite '/usr/share/licenses/gcc-libs/*' git
21+
luarocks --lua-version 5.1 --tree lua_modules install resilient.sile 3.4.0
22+
23+
- name: Build PDF
24+
run: sile -u inputters.silm ddd-reference.silm
25+
26+
- name: Upload PDF as artifact
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: ddd-reference
30+
path: ddd-reference.pdf
31+
32+
- name: Update latest release
33+
uses: softprops/action-gh-release@v2
34+
with:
35+
tag_name: latest
36+
name: Latest Build
37+
body: Built from ${{ github.sha }}
38+
files: ddd-reference.pdf
39+
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.

0 commit comments

Comments
 (0)