You can add an extra step to your existing GitHub Workflows to upload a new build to MobileBoost.
Here is an example workflow in which the last step uploads a build file to MobileBoost and exposes the returned buildId
to the GITHUB_ENV
name: Upload Build File Example
on:
push:
branches: [main]
jobs:
upload-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build project
run: |
# Build your project and generate the build file
- name: Upload build file
run: |
call=$(curl -i -X POST \
-H "Content-Type: multipart/form-data" \
-F "build=@<build_file_path>" \
-F "organisation_key=<ORG_KEY>" \
-F "platform=<platform>" \
-F "metadata={}" \
https://api.mobileboost.io/uploadBuild/)
buildId=$(echo "$call" | awk '/^{/ {print}' | jq -r '.buildId')
echo "${buildId}" >>$GITHUB_ENV