Update deploy and build sequences

Please review..