implement release upload api
extract regexp patterns out to global.