AWS CodeDeploy FAQs | Amazon Web Sevices

For other source control systems, you can bundle and upload the revision to an Amazon S3 bucket in a .zip, .tar, or .tar.gz format and specify the Amazon S3 location when doing a deployment. If your application needs a build step, make sure that the GitHub repository or the Amazon S3 bucket contains the post-build artifacts.

https://aws.amazon.com/codedeploy/faqs/