about summary refs log tree commit diff homepage
path: root/.builds/auto.yml
blob: 402048b4bdeb0c594415b5f2c820c8f6e1b312a0 (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.openring
  - nixos.python3
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
      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/postprocess
  - deploy: |
      tar -cvzf site.tar.gz -C site/__site .
      # acurl -f https://pages.sr.ht/publish/cnx.gdn -F content=@site.tar.gz
artifacts:
  - site.tar.gz