Radish alpha
r
Radicle website including documentation and guides
Radicle
Git (anonymous pull)
Log in to clone via SSH
make: Prevent gobbling of publish files
Lorenz Leutgeb committed 19 days ago
commit afbe05429d6e7c24a225b8c7a1d21d84fde112bd
parent 9e156995c6138edfe2d02af29248818145419af7
2 files changed +14 -3
modified .gitignore
@@ -10,4 +10,5 @@ notes/
.direnv
*~undo-tree~
**/.\#*
-
flake.lock

\ No newline at end of file
+
flake.lock
+
publish
modified Makefile
@@ -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