about summary refs log tree commit diff homepage
path: root/.builds/auto.yml
blob: f20186f1b78c5b4d39e12f762881c19cc043de22 (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
25
26
image: nixos/unstable
oauth: lists.sr.ht/EMAILS:RO pages.sr.ht/PAGES:RW
packages:
  - nixos.fead
sources:
  - https://git.sr.ht/~amolith/fediring.net
  - https://git.sr.ht/~cnx/site
environment:
  NODE: node
tasks:
  - inject: |
      grep -C1 cnx.gdn fediring.net/webring.txt |
        awk 'NR % 2 { print $2 }' > site/_libs/fediring
      fead -F site/_libs/fead/sources -n 4 -l 192\
        < site/_libs/fead/in.html > site/_libs/fead/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 htmlq --run _libs/onlymathml
      nix-shell -p python3Packages.css-html-js-minify --run _libs/postprocess
  - deploy: |
      chmod -R +r site/__site
      tar -cvzf site.tar.gz -C site/__site .
artifacts:
  - site.tar.gz