It's pretty easy to set up GitHub action with AWS EC2 for deployments using SSH key, follow these 3 breakdowns to implement the pipeline.
...
For further actions, you may consider blocking this person and/or reporting abuse
is this ci/cd?
when i commit and push code to github , will it directly change in ec2 ngnix?
Yes, Indeed.