diff --git a/contrib/make_nightly_build b/contrib/make_nightly_build index b24b241..b6aaf05 100755 --- a/contrib/make_nightly_build +++ b/contrib/make_nightly_build @@ -46,6 +46,15 @@ last_nightly_version=$(curl -s "https://api.github.com/repos/$repo/releases/late exit 1 } +local_version="$(git --git-dir $BASEDIR/.git describe)" +if [ "$local_version" == "$last_nightly_version" ] ; then + echo "$title is already at version $last_nightly_version" + exit 1 +fi + +echo +echo "building $title version $local_version..." +echo echo running tests... ./zig build test @@ -99,4 +108,4 @@ echo > "$release_notes" git log "$(git describe --tags --abbrev=0)..HEAD" --pretty="format:%al %s" >> "$release_notes" cat "$release_notes" -gh release create (git --git-dir $BASEDIR/.git describe) --notes-file "$release_notes" $DESTDIR/* +gh release create "$VERSION" --repo "$repo" --notes-file "$release_notes" $DESTDIR/*