add publish auth

Signed-off-by: miaojian <kitemao@gmail.com>
add branch publish

Signed-off-by: miaojian <kitemao@gmail.com>
add rollback logic

Signed-off-by: miaojian <kitemao@gmail.com>