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 on the Code signing tab of the Workflow Editor.
Before you start:
- Make sure you have the Android Sign Step in your deploy workflow right after your build Steps but before Google Play deploy Step.
- Log into bitrise.io and click on your app.
- On your Dashboard, click Workflows.
- Click Code signing.
Click on or drag-and-drop your keystore file to the Upload file field of the ANDROID KEYSTORE FILE section.
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:
- Keystore password.
- Keystore alias.
- Private key password.
Click Save metadata.
When you have successfully uploaded a keystore file to the ANDROID KEYSTORE FILE section, Bitrise will automatically export the following Environment Variables based on your input:
Bitrise uses the above Environment Variables 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 path field in the Google Play Deploy Step.
Downloading your files ⚓
You can download your files from the GENERIC FILE STORAGE (for example, your keystore file) using the File-downloader Step:
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 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.