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: Sign In to your InstaWP account to access the dashboard.



Step 2: Click on the Templates button from the top navigation bar.



You will be taken to the templates page.



Step 3: Click on the Deployment icon corresponding to the template for which you want to enable deployment.



Note: Git deployment can be connected to private templates only.

A new modal window will appear, asking you to select the repository you want to deploy when the site is created from the template.



Step 4: Click on the Copy icon which is right to the InstaWP template webhook URL.



Step 5: Navigate to the selected GitHub repository’ Webhook setting to add a webhook.



Step 6: A new window will appear for adding the webhook, paste the Payload URL (where you'd like to receive payloads) & Content type (data format to receive the webhook payload in).



Step 7: Click on the Add webhook button to attach the site webhook URL to your GitHub repository.



Step 8: Click on the Update button to update the repository list to an existing template on every push.



Then, you will see a success message on your screen.



Now, you can view the GitHub repository in any of your code editors which shows that you have configured GitHub, InstaWP token, etc.
This allows you to create a site from the template every time you have a new change in your Git branch. For more, refer to the Github actions document.






Create Template
Edit Template

Updated on: 14/02/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!