about summary refs log tree commit diff homepage
path: root/.builds/auto.yml
blob: fc8a4ae55fd9584727da3fc27065b50da944c697 (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.python3
sources:
  - https://git.sr.ht/~amolith/fediring.net
  - https://git.sr.ht/~cnx/fead
  - 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/src/fead.py -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 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