![]() ci/post_build.sh (or somewhere you want) and add some scripts on it as following. The last piece that ties the all together is a shell script file.Ĭreate a file at. If you want more info about the command and variables, see the document. You can get and set them on Firebase console. Though, that should not matter much as long as you keep the UCB project private.įIREBASE_APP is the id of the Firebase app, and FIREBASE_GROUPS is the names of tester groups separated by ",". UCB doesn’t have a feature to store “Secret” variables which is common in some other CI services. Set it as an env variable in “Environment Variables” section of UCB. We’ll set it by script later.įIREBASE_TOKEN is the authentication token you’ve gotten on the former step. package.json (partial) įIREBASE_BUILD is the path to the built ipa/apk. I’ll explain about "scripts" property later, so let’s get into the detail then.īTW, “burger-kingdom” is a project I’m currently working on :) The final package.json file should be like following. In order to run it on CI, I assume using npm is the easiest and reliable way because we can specify the version of the cli. To deploy you app to Firebase App Distribution, you have to use firebase cli. There is detailed guide on Firebase document & console. ![]() set up scripts deploy ipa/apk to Firebase App Distributionįirst of all, you have to create Firebase project and install Firebase SDK into your Unity project.authenticate with Firebase by a token obtained by firebase login:ci.In this article, we configure Unity Cloud Build to ![]() ![]() The script can run npm to install firebase-cli, and you can deploy your ipa/apk to Firebase using the cli. Unity Cloud Build (UCB) has a feature “Post-Build Script” where you can execute shell script file.
0 Comments
Leave a Reply. |