Revert SourceHut changes
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
David Eisinger
2026-04-08 22:51:31 -04:00
parent 4d0c65dcef
commit 2ca66ed400

View File

@@ -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