mirror of
https://seed.radicle.dev/rad:z371PVmDHdjJucejRoRYJcDEvD5pp.git
synced 2026-10-18 19:10:34 +08:00
make: Prevent gobbling of publish files
This commit is contained in:
+2
-1
@@ -10,4 +10,5 @@ notes/
|
||||
.direnv
|
||||
*~undo-tree~
|
||||
**/.\#*
|
||||
flake.lock
|
||||
flake.lock
|
||||
publish
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user