From: Alexander Goussas Date: Tue, 19 May 2026 17:14:23 +0000 (-0500) Subject: feat: update build script to use zine and generate rss feed X-Git-Url: http://git.frustrated-labs.net/?a=commitdiff_plain;h=refs%2Fheads%2Frss-feed;p=frustrated-functor.dev.git feat: update build script to use zine and generate rss feed --- diff --git a/bin/zine b/bin/zine new file mode 100755 index 0000000..97d9e42 Binary files /dev/null and b/bin/zine differ diff --git a/scripts/build.sh b/scripts/build.sh index 46e6558..c9ad4df 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -2,26 +2,25 @@ set -e -POSTS="$(realpath ./posts)" -EXE='bin/blog-processor/zig-out/bin/blog_processor' WORKDIR="$(pwd)" REPO='aloussase69/site' TAG="$(git describe --tags --abbrev=0)" IMAGE="$REPO:$TAG" +ZINE="$(find . -name 'zine' -type f -executable)" -echo '[INFO] Building blog processor' -cd bin/blog-processor && zig build && cd "$WORKDIR" +echo '[INFO] Processing blog' +"$ZINE" release -f -if [ ! -f "$EXE" ]; then - echo '[ERROR] Could not locate blog processor' +if [ $? -ne 0 ]; then + echo '[ERROR] Failed to build posts' exit 1 fi -echo '[INFO] Processing blog' -"$EXE" "$POSTS" +echo '[INFO] Generating RSS feed' +python3 "$WORKDIR/scripts/gen_rss.py" if [ $? -ne 0 ]; then - echo '[ERROR] Failed to build posts' + echo '[ERROR] Failed to generate RSS feed' exit 1 fi