# Conflicts: # node_modules/@babel/core/node_modules/.bin/json5 # node_modules/@babel/core/node_modules/.bin/parser # node_modules/@babel/helper-member-expression-to-functions/package.json # node_modules/@babel/helper-module-imports/package.json # node_modules/@babel/helper-module-transforms/package.json # node_modules/@babel/helper-optimise-call-expression/package.json # node_modules/@babel/helper-replace-supers/package.json # node_modules/@babel/helper-simple-access/package.json # node_modules/@babel/helper-validator-identifier/package.json # node_modules/@types/yargs-parser/LICENSE # node_modules/@types/yargs-parser/README.md # node_modules/@types/yargs-parser/package.json # node_modules/callsites/package.json # node_modules/emoji-regex/README.md # node_modules/emoji-regex/es2015/index.js # node_modules/emoji-regex/es2015/text.js # node_modules/emoji-regex/index.d.ts # node_modules/emoji-regex/index.js # node_modules/emoji-regex/package.json # node_modules/emoji-regex/text.js # node_modules/esprima/package.json # node_modules/gensync/package.json # node_modules/html-escaper/package.json # node_modules/istanbul-lib-instrument/node_modules/semver/package.json # node_modules/jest-snapshot/node_modules/semver/bin/semver.js # node_modules/lodash.memoize/package.json # node_modules/picomatch/package.json # node_modules/read-pkg/index.js # node_modules/read-pkg/package.json # node_modules/read-pkg/readme.md # node_modules/slash/index.js # node_modules/slash/package.json # node_modules/slash/readme.md # node_modules/ts-jest/node_modules/.bin/mkdirp # node_modules/word-wrap/package.json
Sign Android Release Action
This action will help you sign an Android .apk or .aab (Android App Bundle) file for release.
Inputs
releaseDirectory
Required: The relative directory path in your project where your Android release file will be located
signingKeyBase64
Required: The base64 encoded signing key used to sign your app
This action will directly decode this input to a file to sign your release with. You can prepare your key by running this command on *nix systems.
openssl base64 < some_signing_key.jks | tr -d '\n' | tee some_signing_key.jks.base64.txt
Then copy the contents of the .txt file to your GH secrets
alias
Required: The alias of your signing key
keyStorePassword
Required: The password to your signing keystore
keyPassword
Optional: The private key password for your signing keystore
ENV: BUILD_TOOLS_VERSION
Optional: You can manually specify a version of build-tools to use. We use 29.0.3 by default.
Outputs
signedReleaseFile
The path to the signed release file from this action
ENV: SIGNED_RELEASE_FILE
This also set's an environment variable that points to the signed release file
Example usage
steps:
# ...
- uses: r0adkll/sign-android-release@v1
name: Sign app APK
# ID used to access action output
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
// override default build-tools version (29.0.3) -- optional
BUILD_TOOLS_VERSION: "30.0.2"
# Example use of `signedReleaseFile` output -- not needed
- uses: actions/upload-artifact@v2
with:
name: Signed app bundle
path: ${{steps.sign_app.outputs.signedReleaseFile}}