To deploy builds to Google Play, the first stage of the process is to
create a service account with a JSON-formatted private key (.json
) and
setup the appropriate permissions from the Google Play Developer
Console.
Lets get started!
-
Open the Google Play Developers Console
If you are not already logged into a Google application, the login dialog appears:
Log in with your email address and password.
The Developer Console screen is displayed:
-
In the left navigation area, click the Settings button. The Settings screen is displayed:
-
In the left navigation area, click the API access button. The API access screen is displayed:
-
Scroll down to the Service Accounts panel, then click the Create Service Account button. The Create Service Account dialog is displayed:
-
Click the Google API Console link. In a new tab (or window), the Google API Console is displayed:
-
Click the Create Service Account button. The Create service account dialog is displayed.
-
In the Service account name field, specify the name for this service account.
-
In the Role dropdown, select an appropriate role for this service account.
-
Check the Furnish a new private key checkbox. The dialog expands:
-
Make sure that the key type field has JSON selected.
-
Click the Create button to create the service account. The private key for the service account downloads, and the Service account created dialog is displayed:
ImportantAt this point the JSON private key has been downloaded to your computer
You need to upload this file to buddybuild in the next stage.
Make sure that you store the private key in a secure place. If the private key is deleted or otherwise lost, you cannot retrieve it.
-
Return to the Google Play Developer Console. Find it in the original browser window or tab.
-
Find the just-created service account in the Service Accounts panel, and click the Grant Access button in the same row. The Add a new user dialog is displayed:
-
Adjust permissions for the service account as you see fit. Make sure that the Role dropdown has Release manager selected.
That’s it for stage 1! The next stage is to set up buddybuild to automatically deploy to Google Play.