Deploying artifacts at the end of build.

(cherry picked from commit 13be24ae522b4ee977be9eb8b3e8c7ac3f0d9aa3)