From 2ca66ed4001fb53bca9f03187a6e4d5833bc6e89 Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Wed, 8 Apr 2026 22:51:31 -0400 Subject: [PATCH] Revert SourceHut changes --- .build.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.build.yml b/.build.yml index 83c8a95..4ff35be 100644 --- a/.build.yml +++ b/.build.yml @@ -30,15 +30,26 @@ tasks: # Diff RSS template against Hugo default, make sure only differences are intentional - rss: | - ./bin/check-rss-template + curl -s https://raw.githubusercontent.com/gohugoio/hugo/refs/tags/v$HUGO_VERSION/tpl/tplimpl/embedded/templates/rss.xml \ + | diff - ./themes/v2/layouts/_default/rss.xml \ + | wc -l \ + | grep 7 # Start Ruby server for dithering images - dither: | - true + cd bin/dither + sudo bundle install + ROOT=~/davideisinger.com/content \ + KEY=~/secret.key \ + bundle exec rackup -p 4567 -D # Build site - hugo: | - ./bin/build + HUGO_PARAMS_GIT_COMMIT=$(git rev-parse HEAD) \ + DITHER_SERVER=http://localhost:4567 \ + hugo --minify + find public -name "*.enc" -type f -delete + find public/elsewhere -name "*.gmi" -type f -delete # Sync files to production server - deploy: | @@ -52,7 +63,7 @@ tasks: -v \ -r \ --delete \ - public/ \ + public/* \ www-data@$SERVER_IP:/var/www/davideisinger.com \ 2>/dev/null set -x