如何防止codepipeline删除webroot中的文件?

I have a web app based on cakephp3. I've deployed on AWS EB using codepipeline via github. When I push commits on github, old files that have been created by the system are deleted. I mean, codepipeline replaces everithing with the new files from github. I want just to deploy the difference not everything.