blob: 6e567e22645bbace8ee1af6f834701eeb6a01a67 (
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
|
image: debian/testing
packages:
- emacs-nox
- hugo
- zip
- rsync
sources:
- https://git.sr.ht/~ymherklotz/vericert-docs
secrets:
- fbcab77b-bd56-4356-a6b3-54c656f2b364
- f1c07b45-32bd-4559-b370-28e59e4c11e1
tasks:
- init: |
cd vericert-docs/static
sshopts="ssh -o StrictHostKeyChecking=no"
rsync --rsh="$sshopts" zk@leika.ymhg.org:~/docs.tar.xz .
tar xvf docs.tar.xz
rm docs.tar.xz
- build: |
cd vericert-docs
emacs --batch --file content.org --load publish.el
hugo --minify
- deploy: |
cd vericert-docs
zip -r public.zip public
set +x
key=$(cat ~/.netlify-key)
curl -H "Content-Type: application/zip" \
-H "Authorization: Bearer $key" \
--data-binary "@public.zip" \
https://api.netlify.com/api/v1/sites/vericert-docs.netlify.app/deploys >/dev/null 2>&1
|