Is it possible to directly push changes to a cpanel repository from GitHub desktop software. Or first the repository changes will be pushed to the online repository on github.com and then from there the cpanel will fetch the changes by clicking Update from Remote & Deploy HEAD Commit
2
Answers
Clone the remote repository on your cPanel account to your local computer.
git clone URL
Create the
.cpanel.yml
file.Add the cPanel-managed repository as a remote.
git remote add origin URL
Push changes to the cPanel-managed repository.
git push -u origin HEAD
For more information: https://documentation.cpanel.net/display/CKB/Guide+to+Git+-+How+to+Set+Up+Deployment
One possibility would be to use a GitHub Action, that is a process able to run on GitHub side, triggered by a push.
For example, a deployment action, like one to publish to Netlify or zem
You would need to adapt such an action to push/publish to Cpanel, using an API key.