blob: 80bd57be5944e241e08eeba62ee8c149040df8f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
image: nixos/unstable
oauth: lists.sr.ht/EMAILS:RO pages.sr.ht/PAGES:RW
packages:
- nixos.jq
- nixos.openring
sources:
- https://git.sr.ht/~cnx/site
environment:
NODE: node
tasks:
- inject: |
curl https://fediring.net/ring.json |
jq -r 'map(.host)|until(.[0]=="cnx.srht.site";.[1:]+.[:1])|.[-1,1]'\
> site/_libs/fediring
openring -n 4 -l 192 -S site/_libs/openring/sources\
< site/_libs/openring/in.html > site/_libs/openring/out.html
acurl https://lists.sr.ht/query/list/5261.mbox -o site/_libs/formbox/mbox
- build: |
cd site
nix-shell --run 'julia --project=@. .build.jl'
rm -r __site/libs
- deploy: |
tar -cvzf site.tar.gz -C site/__site .
acurl -f https://pages.sr.ht/publish/cnx.srht.site -F content=@site.tar.gz
|