Deploy Jekyll build to Github Pages using Git pre-push hook
There are examples how to automatically deploy Jekyll site build using Git’s post-update
or post-receive
hooks which are server-side hooks.
I think it’s much more simple to use pre-push
client-side (executes on your desktop) hook to automatically push a new site build to Github Pages before pushing to your Jekyll project repository.