~yoctocell/yoctocell.xyz

a7b889cc7e3c701e40abff766ee158e77c5129ea — Xinglu Chen 1 year, 6 months ago 0ee07b9
default.nix: Run openring on deployment
1 files changed, 12 insertions(+), 0 deletions(-)

M default.nix
M default.nix => default.nix +12 -0
@@ 20,6 20,18 @@ let

  updateServer = pkgs.writeScriptBin "update-server"
    ''
      openring \
      -s https://drewdevault.com/feed.xml \
      -s https://protesilaos.com/codelog.xml \
      -s https://ambrevar.xyz/atom.xml \
      -s https://guix.gnu.org/feeds/blog.atom \
      -s https://brettgilio.com/rss.xml \
      -s https://brown.121407.xyz/posts/rss.xml \
      < ~/src/yoctocell.xyz/src/templates/webring-in.html \
      > ~/src/yoctocell.xyz/src/templates/webring-out.html

      ./result/bin/site build

      rsync -aAXv --delete public/ root@yoctocell.xyz:/var/www/yoctocell.xyz
    '';
in