From 2359edf86b973ed6269c3fcdb64999fdf84f61c6 Mon Sep 17 00:00:00 2001 From: Goutte Date: Wed, 7 Mar 2018 09:08:17 +0100 Subject: [PATCH] Update the publication script to use `git describe --tags`. --- VERSION | 2 +- bin/publish | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 8450ae5..0ec25f7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.0-rc8 \ No newline at end of file +v1.0.0 diff --git a/bin/publish b/bin/publish index 483cbb0..760119f 100755 --- a/bin/publish +++ b/bin/publish @@ -15,7 +15,7 @@ # and swap configuration below. # Note that the storms server seems to reject key-based authentication, -# whatever's written in /etc/sshd configuration. Weird. +# whatever's written in its /etc/sshd configuration. Weird. # CONFIGURATION ############################################################### @@ -80,11 +80,16 @@ On_White='\033[47m' # White echo -e "${Green}Cleaning local files...${Off}" rm -R cache/* +# Fill the VERSION number with the new version +VERSION=`git describe --tags` +echo -e "${Green}Setting new version : ${Yellow}${VERSION}${Off}" +echo $VERSION > VERSION + # UPLOAD ###################################################################### # Delete is dangerous, as we're using a file-based database -# so we need to exclude some directories and files. +# so we must exclude some directories and files. echo -e "${Green}Uploading files...${Off}" rsync -r --delete \ --exclude .git \ -- libgit2 0.21.2