diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a845dc2..ff42bdd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -70,7 +70,7 @@ android_debug: - build/android # Android Release Job. You will need to include keystore and password in the GitLab variable settings: -# 1. Take your generated keystore and convert it to base64: base64 release.keystore +# 1. Take your generated keystore and convert it to base64: base64 release.keystore -w 0 # 2. Go to Gitlab Project > Settings > CI/CD > Variables and copy the base64 keystore value in a new variable SECRET_RELEASE_KEYSTORE_BASE64 as type file # 3. Create a second variable SECRET_RELEASE_KEYSTORE_USER as type variable with the alias of your keystore as value. # 4. Create a third variable SECRET_RELEASE_KEYSTORE_PASSWORD as type variable with the password of your keystore as value. diff --git a/README.md b/README.md index 69ee645..2ba4cd5 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,17 @@ https://hub.docker.com/r/barichello/godot-ci/ To build a godot project with Mono enabled, change the image tag from `barichello/godot-ci:VERSION` to `barichello/godot-ci:mono-VERSION` in `.gitlab-ci.yml` (Gitlab) or `godot-ci.yml` (Github). e.g. `barichello/godot-ci:mono-3.2.1`. +### Android + +To build a debug release (debug.keystore), use the `android_debug` job example in the `gitlab-ci.yml` file. + +If you want to export for Android with your own keystore, you can do this with the following steps: +1. Take your generated keystore and convert it to base64: `base64 release.keystore -w 0` +2. Go to Gitlab Project > Settings > CI/CD > Variables and copy the base64 keystore value in a new variable SECRET_RELEASE_KEYSTORE_BASE64 as type file +3. Create a second variable SECRET_RELEASE_KEYSTORE_USER as type variable with the alias of your keystore as value. +4. Create a third variable SECRET_RELEASE_KEYSTORE_PASSWORD as type variable with the password of your keystore as value. +5. Use the `android` job example in the `gitlab-ci.yml` file. + ## Platforms Here's a mapping between each supported CI service, the template jobs and a live example.