Git Product home page Git Product logo

build-signed-apk's Introduction

Build signed APK

Build a signed APK of your Android application

WARNING: This uses apt-get to install Java, as I didn't find better ways to install it, and, consequently, will work ONLY on Ubuntu

Inputs

The following inputs are all required

  • keystore_b64 (optional, in alternative to keystore_file): the contents of the keystore file (.jks), encoded as base64. (I highly recommend you to generate this with the linux base64 command, it did not work for me using websites to convert it.)
  • keystore_file (optional, in alternative to keystore): the path to the keystore file (.jks). There's no need to encode it as base64.
  • keystore_password: the password of the file
  • key_alias: the alias of the key
  • key_password: the password of the key
  • gradlew_dir: directory of the gradlew file

If both keystore_b64 and keystore_file are defined, only keystore_b64 will be used. At least one of them must be defined.

Example

- name: Build Signed APK
  uses: victorbnl/build-signed-apk@main
  with:
    keystore_b64: ${{ secrets.keystore }}
    keystore_password: ${{ secrets.keystore_password }}
    key_alias: ${{ secrets.key_alias }}
    key_password: ${{ secrets.key_password }}

Get your APK

The APK is built at the default location, which is: app/build/outputs/apk/release/app-release.apk. Feel free to do whatever you want with this apk now, like creating a release with it or putting it as an artifact of the release

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.