diff options
Diffstat (limited to '.builds/auto.yml')
-rw-r--r-- | .builds/auto.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.builds/auto.yml b/.builds/auto.yml new file mode 100644 index 0000000..c5b9a7b --- /dev/null +++ b/.builds/auto.yml @@ -0,0 +1,25 @@ +image: nixos/unstable +oauth: lists.sr.ht/EMAILS:RO pages.sr.ht/PAGES:RW +packages: + - nixos.jq + - nixos.openring + - nixos.python3 +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 .builds/shell.nix --run 'julia --project=@. .builds/franklin.jl' + nix-shell -p python3Packages.css-html-js-minify --run _libs/minify + - deploy: | + tar -cvzf site.tar.gz -C site/__site . + acurl -f https://pages.sr.ht/publish/cnx.srht.site -F content=@site.tar.gz |