make: Prevent gobbling of publish files

This commit is contained in:
Lorenz Leutgeb
2026-05-03 10:54:57 +02:00
parent 9e156995c6
commit afbe05429d
2 changed files with 14 additions and 3 deletions
+2 -1
View File
@@ -10,4 +10,5 @@ notes/
.direnv
*~undo-tree~
**/.\#*
flake.lock
flake.lock
publish
+12 -2
View File
@@ -1,4 +1,7 @@
FILES := https://files.radicle.dev
NOW := $(shell date --iso-8601=seconds)
PUBLISH := ./publish/$(NOW)
GIT_STATUS := git status --porcelain
default: build
@@ -25,8 +28,15 @@ cloudflare:
svgs:
scripts/cleanup-svgs.sh assets/images/*.svg
publish: default
wrangler deploy --name="website"
publish: releases
@if [ ! -z "$$($(GIT_STATUS))" ]; \
then \
$(GIT_STATUS) ; \
exit 1 ; \
else \
bundle exec jekyll build --destination=$(PUBLISH) ; \
wrangler deploy --name="website" --assets=$(PUBLISH) ; \
fi
clean:
@rm -rfv _site