summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-21 01:20:14 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-21 01:20:14 +0200
commit8c8d4a24f0bab5d4735043a18098d8802adecee8 (patch)
tree26133ab891ae3fd373ed0326345f005cd3501d13
parentdfc79f0440e18927990fbf78248e7dff877e418f (diff)
Add a release target
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c4f6bdc..f6ab10f 100644
--- a/Makefile
+++ b/Makefile
@@ -10,3 +10,8 @@ all-i18n:
watch:
ls euro-cash.eu | entr -r ./euro-cash.eu -no-email -port $${PORT:-8080}
+
+# Build a release tarball for easy deployment
+release: all-i18n
+ [ -n "$$GOOS" -a -n "$$GOARCH" ]
+ tar -cf euro-cash.eu-$$GOOS-$$GOARCH.tar.gz euro-cash.eu data/ static/