]> git.lizzy.rs Git - micro.git/commitdiff
Don't move nightly tag
authorZachary Yedidia <zyedidia@gmail.com>
Wed, 17 Jun 2020 00:48:17 +0000 (00:48 +0000)
committerZachary Yedidia <zyedidia@gmail.com>
Wed, 17 Jun 2020 00:48:17 +0000 (00:48 +0000)
tools/nightly-release.sh

index 3a22c245f3eff168831603cbe6a422b51daacd25..cb52b43e49c87e3385bf5bfe33cb7629033e095f 100755 (executable)
@@ -1,20 +1,20 @@
 # This script creates the nightly release on Github for micro
 # Must be run from inside the micro git repository
 
-commitID=$(git rev-parse HEAD)
-info=$(github-release info -u zyedidia -r micro -t nightly)
+commitID=$(git rev-parse --short HEAD)
+info=$(github-release info -u zyedidia -r micro -t nightly)
 
-if [[ $info = *$commitID* ]]; then
-    echo "No new commits since last nightly"
-    exit 1
-fi
+if [[ $info = *$commitID* ]]; then
+    echo "No new commits since last nightly"
+    exit 1
+fi
 
 go run remove-nightly-assets.go
 
-echo "Moving tag"
-hub push origin :refs/tags/nightly
-git tag -f nightly $commitID
-hub push --tags
+echo "Moving tag"
+hub push origin :refs/tags/nightly
+git tag -f nightly $commitID
+hub push --tags
 
 echo "Cross compiling binaries"
 ./cross-compile.sh $1
@@ -25,7 +25,8 @@ MESSAGE=$'Nightly build\n\nAutogenerated nightly build of micro'
 echo "Creating new release"
 hub release edit nightly \
     --prerelease \
-    --message "$MESSAGE. Assets uploaded on $(date)" \
+    --draft=false \
+    --message "$MESSAGE. Assets uploaded on $(date) for commit $commitID." \
     --attach "binaries/micro-$1-osx.tar.gz" \
     --attach "binaries/micro-$1-linux64.tar.gz" \
     --attach "binaries/micro-$1-linux64-static.tar.gz" \