Added check to only release if tag is set