better detection of [publish] and git tag