Build and sign the apk(s) for any android project on Github. Workflow
-
fork this repo
-
open the
actions
tab and selectbuild apk
in the left pane -
click
Run workflow
and fill in what you need:git clone url
: the git url of the repo you want to build the apk from. ex:https://github.com/Yanndroid/OneUI-Design-Library.git
commit
: optional, if you want the apk of a particular commit (also from a different branch). ex:cf3fef4
orcf3fef46ad0db897a270ac4a25ce6b4372f2655f
dir
: optional, if the repo contains multiple projects (don't forget the '/'). ex:/ActivitySceneTransitionBasic
module
: the module you want to build (default:app
). ex:Application
google-services.json
: optional, if the project uses firebase and requires a google-services.json file, you can add the content of the file here.local.properties
: optional, if the project needs variables from local.properties to build, add it's content here.sign apk
: whether to sign the apk or not.
the content you add in
google-services.json
andlocal.properties
stays private and isn't shown in the log. -
get your apk(s) after the run in the summary under
Artifacts
.
- If the run fails in
build
orbuild & sign
there is a problem with the project and there's nothing I can do, otherwise kindly report the problem. Also check if you selected the rightmodule
and filled in the additional files if needed. - For your own app's security, do not sign it with this key for publishing, as the password is publicly available.