Login into our app distribution tool getupdraft.com/login
Go to your Profile within the sidebar
Copy your API Key as well as the App Key of your App
Your API Key you find in your Profile.
The App Key you will find on the application overview. The App key differs for each environment.
As soon you have your Updraft account created, you are ready to configure the CI/ CD pipeline with GitLab.
Open your Gitlab Project
Go to the Settings
Go to the section Variables
Add your Variables from Updraft (API key and App Key) in two separate fiels
Head over to the root directory (files) of your Android app project in GitLab.
Add a new file your .gitlab-cy.yml file
Copy the below example of .gitlab-ci.yml file
stages:- build- updraftbuildProd:stage: buildonly:- releasescript:- ./gradlew app:assembleProdReleaseartifacts:paths:- app/build/outputs/apk/prod/release/*.apkdeploy:stage: updraftonly:- releasescript:- |curl \-F whats_new="Gitlab build" \-F "[email protected]/build/outputs/apk/prod/release/android.apk" \-X PUT https://getupdraft.com/api/app_upload/$UPDRAFT_APP_KEY/$UPDRAFT_API_KEY/