Creating a signed APK with the Sign APK Step ⚓
You can create a signed APK using the
Sign APK step in your Bitrise workflow.
Bitrise Project Scanner provides a
deploy workflow which contains the
Sign APK 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
Sign APKStep in 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
Sign APKstep. 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: