aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-04 19:33:41 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-04 19:33:41 +0100
commit6200f9a3c47770119abbb8b563ba32a0ea363949 (patch)
treee08fe8d48ca91d92e9d604df40d3fcbf4785b42b
parent6b3f0ad04550060fd25b87b68c3f9bc1602f3226 (diff)
downloadFront-6200f9a3c47770119abbb8b563ba32a0ea363949.tar.gz
Front-6200f9a3c47770119abbb8b563ba32a0ea363949.tar.zst
Front-6200f9a3c47770119abbb8b563ba32a0ea363949.zip
Add build_release in Makefile
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d7fe209..09c4121 100644
--- a/Makefile
+++ b/Makefile
@@ -5,3 +5,18 @@ install:
5 5
6clean: 6clean:
7 rm -rf vendor 7 rm -rf vendor
8
9release_version = $(shell git describe --tags --always)
10release_file = front_$(release_version).tar.gz
11folder = ~/.no_backup/projets/git.immae.eu/releases/cryptoportfolio/front
12
13build_release:
14 git archive HEAD -o $(release_file)
15 mv $(release_file) $(folder)
16 @echo "====== Version information ======"
17 @echo "$(release_version)"
18 @echo -n "sha256: "
19 @sha256sum $(folder)/$(release_file) | cut -d' ' -f1
20 @echo "================================="
21
22