- Generate an API token by:
- Going to Github.com
- Navigate to "Settings" > "Developer Settings" > "Personal Access Tokens"
- Click "Generate new token" (You might want to give it the name "MDOQ")
The token requires the following scopes: repo, admin:public_key, admin:repo_hook
N.B: The token doesn't have to be from your account, it could be a machine user account so long as it has access to the repo for your site
- Generate an SSH key. (the keys must not have a passphrase)
- In Github, go to your repo and click "Settings" > "Deploy Keys".
- Add the previously generated (in step 2) key here (The public part of the key). Give it the name MDOQ and check allow write access
Add these credentials to MDOQ (illustrated in the below animation)
- Select your production instance
- Go to "Settings" > "Source Control"
- Set source control to "Github"
- Set api username, to the username of the user you generated the access token for
- Set api password, to the value of the api token you generated
- Set the repo url
- Set private ssh key, to the private part of the ssh key you generated
- click save