Use the Pro GitHub destination when you want each push recorded in a repository or published by a host that watches a Git branch.
Prepare the repository
Create the destination repository and initialize its branch with a commit, such as a README. Create a GitHub token with access to the intended repository and permission to write its contents. If your organization requires approval or SSO, complete that authorization. GitHub token documentation.
Connect WordPress
- Select Settings → Deployment → GitHub. Choose Personal or Organization as the account type and supply the corresponding owner.
- Enter the commit email, token, repository name and branch. If your host publishes a subdirectory, enter it in Folder. Match the branch your host watches.
- Save and select Test Deployment. Start a Full Site push and check the latest commit on that branch.

The committed files are ready to serve. Set the hosting service’s publish directory to the folder containing index.html. Check the hosting service’s deployment status as well as the plugin log. GitHub Pages publishing sources · Cloudflare Pages Git integration.
A Webhook URL can notify another service after the commit. Expand GitHub request limits to adjust request throttling or batch size if GitHub reports a rate limit.
If a Git push succeeds but the website stays on the previous version, compare the latest commit in the destination branch with the commit shown in your host’s deployment history. For a site served under a project path, include that path when configuring the static site URL.
Deploy directly from WordPress to services such as GitHub, S3 and Bunny CDN with Simply Static Pro. For managed WordPress and static hosting in one service, explore Simply Static Studio.