rewrite blueangel-release.sh script

Make every step a function to make this script seems clear

Signed-off-by: Fudong Bai <baifudong@hisense.com>