-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.build.yml
38 lines (38 loc) · 914 Bytes
/
.build.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
image: alpine/edge
packages:
- cargo
- cmake
- expat-dev
- fontconfig-dev
- freetype-dev
- harfbuzz-dev
- openssl-dev
- rsync
- rust
secrets:
- 160a72cf-34d6-47b7-928b-c13b42b4d4f6
sources:
- https://git.sr.ht/~sircmpwn/wayland-book
- https://github.com/rust-lang-nursery/mdBook
- https://github.com/lbeckman314/mdbook-latex
tasks:
- setup: |
echo "export PATH=$PATH:$HOME/.cargo/bin" >>.buildenv
- mdbook: |
cd mdBook
cargo install --path .
# TODO: Generate PDFs for distribution
#- mdbook-latex: |
# cd mdbook-latex
# cargo install --path .
- build: |
cd wayland-book
mdbook build
# TODO: package calibre for Alpine Linux
#- epub: |
# cd wayland-book
# ebook-convert book/html/print.html book/'The Wayland Book'.epub
- deploy: |
cd wayland-book
sshopts="-o StrictHostKeyChecking=no"
rsync --rsh="ssh $sshopts" -rP book/ [email protected]:/var/www/wayland-book/