mykiwi/mykiwi.blogpublic Fork 0
b9bda7a8b01c38c6369f1e073f36bb851049f34b
Commits
Clone
git clone https://git.rickub.com/mykiwi/mykiwi.blog.git
git clone ssh://git@rickub.com/mykiwi/mykiwi.blog.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Makefile · 34 lines · 1009 BMakefile Blame HistoryRaw
Add Cloudflare provisioning and deploy tooling e4c5d34 Romain Gautier 13h ago1.DEFAULT_GOAL := help
2
3# CLOUDFLARE_API_TOKEN lives in .env (gitignored, copy from .env.dist) -
4# load it into every recipe's environment, e.g. for infra-plan/infra-apply/deploy.
5ifneq (,$(wildcard .env))
6include .env
7export
8endif
9
10.PHONY: help dev build serve infra-plan infra-apply deploy clean
11
12help:
13 @grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-14s\033[0m %s\n", $$1, $$2}'
14
15dev: ## Drop into the Hugo dev shell (hugo, dart-sass)
16 nix develop
17
18build: ## Build the site (all languages) into ./result
19 nix build
20
21serve: ## Run the Hugo dev server with live reload
Fix make serve to point Hugo at blog/ a74fe0a Romain Gautier 9h ago22 nix develop --command hugo server --source blog
Add Cloudflare provisioning and deploy tooling e4c5d34 Romain Gautier 13h ago23
24infra-plan: ## Show what infra-apply would change on Cloudflare
25 nix run .#infra -- plan
26
27infra-apply: ## Apply infra/ changes to Cloudflare
28 nix run .#infra -- apply
29
30deploy: ## Build the site and push it to Cloudflare Pages (all languages)
31 nix run .#deploy
32
33clean: ## Remove build outputs
34 rm -rf result blog/public blog/resources