Creating a signed APK with the Android Sign Step ⚓
You can create a signed APK using the
Android Sign Step in your Bitrise workflow.
Bitrise Project Scanner provides a
deploy workflow which contains the
Android Sign Step. With this step, you can digitally sign your APK as part of your workflow. This Step is configured to run if you have already uploaded your keystore file to Bitrise. All you have to do is upload your keystore file in the
Code signing tab of the Workflow Editor.
In this section, we walk you through the code signing steps using our
android-multiple-test-results-sample demo app.
Before you start:
- Make sure you have the
Android Sign Stepin your deploy workflow right after your build steps but before
Google Play deployStep.
- Log into bitrise.io and click on your app.
- On your
Click or drag-and-drop your keystore file on the
Upload filefield of the
ANDROID KEYSTORE FILEsection.
A keystore URL automatically gets generated once you upload the keystore file. Bitrise assigns an environment variable (
BITRISEIO_ANDROID_KEYSTORE_URL) to the download URL (which is a time-limited, read-only download URL) of the file as the value. You can use this URL to download the keystore file during a build in the future.
- Fill out the displayed three input fields with your credentials:
private key password
When you have successfully uploaded a keystore file in the
ANDROID KEYSTORE FILEsection and you have all the fields filled out, Bitrise will automatically export the following env vars based on your input:
Bitrise uses the above env vars and sets them as inputs into the respective fields of the
Android Sign Step. Once the Step runs, it produces a signed APK which will be used as the input value of the
APK or App Bundle file pathfield in the
Google Play DeployStep.
Downloading your files ⚓
You can download your files from
GENERIC FILE STORAGE (for example, your keystore file) using the
An example for downloading a keystore file:
- file-downloader: inputs: - source: $BITRISEIO_ANDROID_KEYSTORE_URL - destination: "$HOME/keystores/my_keystore.jks" #native android#
After this step,
my_keystore.jks will be available at
You might find these guides helpful as well:
You can upload, update, list, and delete iOS code signing files with the relevant Bitrise API. In this guide we show you how and in what order to use those...
You can manually specify the code signing configuration in your Gradle configuration so that your app gets signed during the build process.
Before you distribute your app through Google Play Store, your APK file must be digitally signed. Find out the different ways of signing your Android app on Bitrise.