Skip to content

Commit

Permalink
Update nightly release script to not duplicate nightlies
Browse files Browse the repository at this point in the history
  • Loading branch information
zyedidia committed Jul 20, 2018
1 parent 8a250f7 commit 1856891
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tools/nightly-release.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
# This script creates the nightly release on Github for micro
# You must have the correct Github access token to run this script

commitID=$(git rev-parse 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

echo "Deleting old release"
github-release delete \
--user zyedidia \
--repo micro \
--tag nightly

commitID=$(git rev-parse HEAD)

echo "Moving tag"
git tag --force nightly $commitID
git push --force --tags
Expand Down

0 comments on commit 1856891

Please sign in to comment.