Configure a webhook on GitHub
To create a webhook, go to your GitHub repository, then to the “Settings” page, and then the webhook creation page.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed