about summary refs log tree commit diff homepage
path: root/.build.yml
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-23 13:52:39 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-23 14:05:30 +0700
commitc9e639f71b686093e6b53097f0accc0cfbb77303 (patch)
tree90b767511c8ba7309e58df441f77c56e35c6c10a /.build.yml
parent477157b0ecb5f24936c453a0ec93c2f71ed67237 (diff)
downloadsite-c9e639f71b686093e6b53097f0accc0cfbb77303.tar.gz
Use system's Node.js
This spares the CI from having to fetch steam-run
and the whole graphic stacks it depends on.
Diffstat (limited to '.build.yml')
-rw-r--r--.build.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/.build.yml b/.build.yml
index 35e7653..9884adf 100644
--- a/.build.yml
+++ b/.build.yml
@@ -3,16 +3,20 @@ oauth: lists.sr.ht/EMAILS:RO pages.sr.ht/PAGES:RW
 packages:
   - nixos.jq
   - nixos.julia-bin
+  - nixos.nodejs
   - nixos.nodePackages.katex
   - nixos.openring
+  - nixos.python3
   - nixos.python3Packages.bleach
   - nixos.python3Packages.css-html-js-minify
   - nixos.python3Packages.markdown
-  - nixos.steam-run-native
 sources:
   - https://git.sr.ht/~cnx/site
+environment:
+  NODE: node
 tasks:
   - inject: |
+      npm install highlight.js
       katex=$(nix-shell '<nixpkgs>' -A nodePackages.katex --run 'echo $out')
       ln -s $katex/lib/node_modules/katex/dist site/_libs/katex
       cp -r site/_libs/katex/{fonts,katex.min.css} site/_css
@@ -24,7 +28,8 @@ tasks:
       acurl https://lists.sr.ht/query/list/5261.mbox -o site/_libs/formbox/mbox
   - build: |
       cd site
-      steam-run julia --project=@. .build.jl
+      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