From b9c8cf5b0567b84d0de3a1781d6e1a05760677d0 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Fri, 3 May 2024 08:34:42 +0200 Subject: [PATCH] Release in makefile --- makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/makefile b/makefile index dec224d..97c755c 100644 --- a/makefile +++ b/makefile @@ -17,4 +17,9 @@ migrate: sqlite3 app/krusty.db < app/Migrations/create-schema.sql sqlite3 app/krusty.db < app/Migrations/initial-data.sql +GITHASH := $(shell git rev-parse --short HEAD) +# Tar everything that isnt gitignored +release: + git ls-files -z | xargs -0 tar -czf krusty-imbus_$(GITHASH).tar.gz + .PHONY: run clean test build