Building expo projects using the default service can take quite a while. This project contains a VSTS deployment gate running on AWS that waits for the build webhook to be triggered.
yarn
WEBHOOK_SECRET=SECRET yarn run deploy
expo webhooks:set --url <URL> --event build --secret <SECRET>
- Create generic Service Connection
- API Url /dev/register
- Add a gate using the service connection
- Headers
{ "Content-Type":"application/json", "x-api-key": "<YOUR API KEY>" }
- Body
{ "PlanUrl": "$(system.CollectionUri)", "ProjectId": "$(system.TeamProjectId)", "HubName": "$(system.HostType)", "PlanId": "$(system.PlanId)", "JobId": "$(system.JobId)", "TimelineId": "$(system.TimelineId)", "TaskInstanceId": "$(system.TaskInstanceId)", "AuthToken": "$(system.AccessToken)", "BuildUrl": "<URL FROM EXPO>" }