EDIT: Looks like Unity Cloud Build now has this built in! Yay! Thanks for those that did donated! Hope it helped you out in the interim!
I wanted to write a small blog post about how to show notifications on your Discord channel when a cloud build is ready. Here are the steps:
- (Optional) Add a channel where build notifications will appear
- Setup webhook URL in Discord
- Setup translation webhook
- Connect webhook URL to Unity Cloud Build
Add #builds Channel (optional)
If you like to keep the build information in a separate channel, create a new channel such as #builds in Discord
Setup Webhook in Discord
The goal here is to get Discord’s webhook URL. Follow these steps:
Setup Translation Webhook
Until Unity Cloud Build or Discord comes up with a way to produce/consume each other’s webhook, I came up with a solution that translates Unity Cloud Build’s webhook into a Discord webhook. Here’s how to set it up:
Create a new Translation Webhook: https://www.etdofresh.com/webhook/translate.php?from=unity&to=discord
Feel free to change Username and Avatar URL if you like.
Connect Webhook to Unity Cloud Build
Now we have to connect the webhook to Unity Cloud Build. Navigate to your project’s Cloud Build under https://developer.cloud.unity3d.com/projects/. Then go to the Notifications Tab and click “Add New Webhook”
Then paste your Webhook URL, setup the webhook as you like, and Save!
Give it a ping to make sure it works!