- Home /
Unity Cloud Build Auto Deploy WebGL to my Server
I am hosting my WebGL app on a server that allows FTP to upload the files. I have been using that to deploy the files that get built from Unity.
I am now using Unity Cloud Build to build the files.
I would like to know if there is some automated process I can add into the Unity Cloud Build that will automatically FTP all the files directly to my server, so I don't have to download the files to my computer from the Unity Cloud Build and then upload them via FTP to the server.
Answer by CrymX · Jan 19, 2017 at 07:17 PM
Hello i think you can use webhook https://blogs.unity3d.com/2016/09/07/webhooks-and-slack-notifications-in-unity-cloud-build/
binded to your personnal webService, then take the download link from the webrequest of the current build and push it on your FTP.
I give it a try soon
Answer by pravusjif · Dec 07, 2018 at 04:39 PM
Extending CrymX's answer, With unity cloud build's successful build webhook you receive in the JSON's body the build direct download link for example at response.links.artifacts[0].files[0].href
Alternatively you can configure this pipeline that also works: unity cloud build success webhook hits your endpoint -> get build api-url in your endpoint -> hit unity cloud build API with that build api-url to get the direct download link to the build.
These links cover the logic needed for this: Basic logic for hitting unity cloud build API: https://hobbyistcoder.com/2016/07/30/unity-cloud-build-automation-pipeline/
User doing exactly this pipeline to serve the build to "HockeyApp": https://forum.unity.com/threads/unity-cloud-build-to-hockeyapp.427009/
Link to the server-side script he used: https://github.com/th3d0g/unitycloudbuildhockeyapp/blob/master/index.js
I hope this helps someone!
Your answer
![](https://koobas.hobune.stream/wayback/20220612091143im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Web deployment - Is it as easy as this? 1 Answer
Same exe file behave different in two PC´s... why? 1 Answer
Combining 3 Games into a single APK 1 Answer
Download from FTP 3 Answers
Unity Cloud Build. How to set ENABLE_BITCODE for iOS? 2 Answers