rifaterdemsahin / aif

Adaptive Intelligence Framework
5 stars 7 forks source link

How to publish Unity Collab to Github automatically #347

Closed Treslina closed 2 years ago

Treslina commented 5 years ago

Using UCB

Treslina commented 5 years ago

Couldn't find any helpful information for doing it automatically but sent an email to the Unity Collaborate support team. Maybe they can give us some hints or tips rather than doing it manually for both Collab and Github.

Treslina commented 5 years ago

image

@rifaterdemsahin

Treslina commented 5 years ago

I can try to implement a solution according to that email like:

  1. Create a webhook integration in Unity Services API that sends a POST request to an URL when a collab publish happens.
  2. Create a script on the backend to support the provided webhook URL to get the JSON information of collab publish.
  3. According to returned JSON string* get the necessary information and commit and push to the Github repo using Github web API (https://developer.github.com/v3/?)

*JSON string contents are not known, so it can be an impossible task to complete because we don't know there is information about "changes" or compatibility between Github and Unity Collab.

@rifaterdemsahin