From 6a3a3c5562e18057bc271555ff6f7967263cf9ca Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Fri, 10 Apr 2026 08:40:02 +0200 Subject: Migrate to mise.toml --- Makefile | 17 ----------------- mise.toml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 17 deletions(-) delete mode 100644 Makefile create mode 100644 mise.toml diff --git a/Makefile b/Makefile deleted file mode 100644 index 0b6adee..0000000 --- a/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -build: - rm -rf public/ - hugo - -stats: build - @python3 scripts/stats.py public/wordstats.json - -deploy: build - rsync --rsync-path="sudo rsync" -avz --delete public/ ubuntu@feed.kagamino.dev:/var/www/kagamino_blog/ - -dev: - hugo server -D - -preprod: - rm -rf public/ - hugo -D -b http://localhost:8000/ - python -m http.server -d public/ diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..d7873fe --- /dev/null +++ b/mise.toml @@ -0,0 +1,23 @@ +[tasks.build] +run = [ + "rm -rf public/", + "hugo" +] + +[tasks.stats] +depends = ["build"] +run = "python3 scripts/stats.py public/wordstats.json" + +[tasks.deploy] +depends = ["build"] +run = 'rsync --rsync-path="sudo rsync" -avz --delete public/ ubuntu@feed.kagamino.dev:/var/www/kagamino_blog/' + +[tasks.dev] +run = "hugo server -D" + +[tasks.preprod] +run = [ + "rm -rf public/", + "hugo -D -b http://localhost:8000/", + "python -m http.server -d public/" +] -- cgit v1.3