Bitrise
Add a “Script” step to your workflow after the Mobile Build step
Edit the Script Content and paste the following code into it, which will upload the APK build file to MobileBoost and make the MobileBoost ID available for following steps as an ENV Variable called MOBILEBOOST_ID
call=$(curl -i -X POST \ -H "Content-Type: multipart/form-data" \ -F "build=@$BITRISE_BUILD_PATH" \ -F "organisation_key=<ORG_KEY>" \ -F "platform=<platform>" \ -F "metadata={}" \ https://api.mobileboost.io/uploadBuild/) buildId=$(echo "$call" | awk '/^{/ {print}' | jq -r '.buildId') envman add --key MOBILEBOOST_ID --value $buildId
In the above script replace
the
<ORG_KEY>
with your GPT Driver OrgIDthe
<platform>
with ”ios” or “android” depending on the buildthe
$BITRISE_BUILD_PATH
with the variable containing the path to your build file
Last updated