skip to Main Content

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


    1. Clone the remote repository on your cPanel account to your local computer. git clone URL

    2. Create the .cpanel.yml file.

    3. Add the cPanel-managed repository as a remote. git remote add origin URL

    4. 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

    Login or Signup to reply.
  1. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search