website/live-blocks: don't call the github api to determine release asset urls

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
This commit is contained in:
Stephan Renatus
2022-03-25 14:28:52 +01:00
committed by Stephan Renatus
parent a16964d4c8
commit 28c299b6f3
3 changed files with 14 additions and 26 deletions
+4 -2
View File
@@ -35,9 +35,10 @@ install-deps: live-blocks-install-deps
# The live-blocks-% pattern target will shim to the
# npm scripts in ./website/scripts/live-blocks
# NOTE(sr): we'll avoid an API call if we make use of releases.yaml to determine the latest release
.PHONY: live-blocks-%
live-blocks-%:
cd $(CURDIR)/website/scripts/live-blocks && npm run $*
cd $(CURDIR)/website/scripts/live-blocks && LATEST=$(shell sed -n '2s/- //p' $(CURDIR)/website/data/releases.yaml) npm run $*
.PHONY: serve-local
serve-local: dev-build
@@ -69,7 +70,8 @@ hugo-production-build:
--minify
.PHONY: production-build
production-build: clean generate hugo-production-build live-blocks-inject
production-build: clean generate hugo-production-build
make live-blocks-inject
.PHONY: preview-build
preview-build: