• Skip to main content
  • Skip to primary sidebar

Web Development Archive

  • Archive
You are here: Home / Devops / Deploy Private GitHub repository to cPanel

Deploy Private GitHub repository to cPanel

Create a WordPress with LocalWP

Create a GitHub Repository

Create an FTP account on your server that points to the theme’s folder

Create the Secret variables GitHub / Settings / Secrets and variables

FTP_SERVER
FTP_USERNAME
FTP_PASSWORD

Create an Action GitHub / Actions / New Workflow and paste in this snippet in main.yml file

If the sync goes without problems, pull the main.yml config file to your local theme’s folder.

git pull

Create a new file, or take any modifications you need and push them to the git repository.

git add .
git commit -m 'First modification'
git push

Filed Under: Devops, Git

About Gabor Flamich

I'm a web developer and designer based in Budapest, Hungary. In recent years, I've documented hundreds of solutions I came across during development. This site is an archive for useful code snippets on WordPress, Genesis Framework and WooCommerce. If You have any questions related to WordPress development, get in touch!

Primary Sidebar

  • angular.io
© 2026 WP Flames - All Right Reserved