Articles on: Deployments

Connect to Template

After you have completed adding a deployment, you can connect it to an existing template. So, every time you have a new change in your Git branch you can create a new site off of the template and we will automatically pull the latest changes to your Git repo onto the new site.

In this documentation, we will explore the steps to connect a Git repository to a template.

Let’s get started 🚀


Step 1: Go to the Templates page and click on the template you want to enable deployment to enter the template dashboard.



Step 2: Click Git Deployment from the options and select your repository. Now, click the copy icon to configure the webhook with the Git Repository.








👉 Go to your GitHub repository, connect webhook and make Updates/Add features and Commit your changes in the branch. For more information, refer to GitHub Actions.



Step 3: Go to Git repository's webhook settings page and click Add webhook button.




Step 4: Paste the copied templates webhook URL on the Payload URL option. Then, select the content type json and click Add webhook button.




This will connect template webhook to Git Repository.





Step 5: Now, go to the repository file and edit it.





Step 6: Go back to the InstaWP Templates page and Save the repository list to an existing template on every push.





Step 7: Now, create a new site from the template. Click the Create New Site icon.



Step 8: Choose temporary or reserve site and click Create Site button from the window.




Your site will be ready within a few seconds. Enter the site by clicking the link to see the Github changes to the site/plugin.






Now, you can view the GitHub repository in any of your code editors using Action yml file which shows that you have configured GitHub, InstaWP token, etc.


💡 Did you know - You can create a site from the template every time you have a new change in your Git branch. Learn about Github actions.

Updated on: 30/05/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!