These notes are for my hosting environment which is a Linux server running cPanel and Apache.
This is what worked for me and if anyone suggests a better method I'll update accordingly.
Assuming files are committed to GitHub, a deploy key is setup and you are logged into the web server via SSH.