blob: fe0e2edbd754ac275fd9e875abe5e8cdac6f3038 (
plain)
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
|
image: debian/testing
packages:
- pandoc
- weasyprint
- poppler-utils
- sic
- rsync
sources:
- https://git.sr.ht/~boringcactus/crowbar-spec
secrets:
- b5cb9b2b-1461-4486-95e1-886451674a89
tasks:
- build: |
cd crowbar-spec
make
- compress: |
tar czf spec-html.tar.gz crowbar-spec/*.html
- test-page-count: |
cd crowbar-spec
make check
- upload: |
upload() {
rsync --rsh="ssh -o StrictHostKeyChecking=no" -rlt8hP --del $@ services@boringcactus.com:/var/www/html/crowbar-lang.org/
}
cd crowbar-spec
upload *.html spec.pdf
- notify: |
cd crowbar-spec
message="crowbar spec updated: $(git log -1 --no-decorate --oneline)"
echo "$message" | ssh -o StrictHostKeyChecking=no services@boringcactus.com 'sh -c "cat > ~/irc/chat.freenode.net/#crowbar-lang/in"'
artifacts:
- crowbar-spec/spec.pdf
- spec-html.tar.gz
|