Gitlab repo to S3 bucket

I have a gitlab repo and every time I push code into the repo , the code should be deployed to a S3 bucket too
Can anyone help me to achive this?