Connecting GitHub to app.indystack.com
We also have a video tutorial of the initial setup for connecting your GitHub respositories on Indystack available here.
- Navigate to https://app.indystack.com/git-servers.
- Press the Authorize button, asking you to authorise our app to identify you and read public GitHub information.
- After that, you will be redirected back to app.indystack.com and you will see the authorised account.
- You’re done.
Connecting account repositories
First, you will need to edit or create a new site.
Then, under the manage site section, navigate to the Repositories subsection.
Click on the Connect git server option and you will be redirected to GitHub. Here you can select your account and grant access to repositories you want to access in Indystack.
You can authorize all your repositories or select specific ones.After authorization, you will be redirected back to app.indystack.com .
Adding GitHub Repository to the site
First, you will need to edit or create a new site.
Then under the manage site section navigate to the Repositories subsection.
Click on the Connect git server option. If you have done the steps above you will see a sidebar with the repositories that you can add you your site.
To add it to the site just click the button Add to site. After that you can close the sidebar.
If you want to set the theme/plugin active automatically right after deploying, then you need to mark it as active.
Note: On the right side next to the repo name there is a dropdown where you can select a specific version of the branch you want to deploy.
Make sure to have at least one theme active in the Repositories section or under the Themes & Plugins section. Otherwise, you could face some validation errors.After that click Deploy changes and they should go live.
Deploying GitHub updates in the repository
If you have made some changes in your GitHub repository that is assigned to one of your sites. You need to click manage under the section of the sites, navigate to the Repositories subsection and then click Deploy changes. This will take all the latest changes from the GitHub repository and deploy them to your site.
Reverting GitHub updates in the repository
In case you have made some error in your GitHub repository, or you simply want to revert the changes, then all you need to do is revert all the changes in the GitHub repository by making a new commit or a revert. After that, you need to click manage under the section of the sites, navigate to the Repositories subsection and then just click Deploy changes. This will take all the latest changes from the GitHub repository and deploy them to your site.