Merge pull request #1706 from CircleCI-Public/deploy-function