Skip to content

Commit 048ad03

Browse files
committed
Add support to pass android-keystore-name in the config
1 parent 330f0f3 commit 048ad03

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ Set scripting define symbols. For example, `RELEASE_VERSION;ENG_VERSION`. Only f
3838

3939
List of additional [BuildOptions](https://docs.unity3d.com/ScriptReference/BuildOptions.html). For example, `SymlinkLibraries, CompressWithLz4HC`. Only for default build method.
4040

41+
### `android-keystore-name`
42+
43+
The keystore name will be used in the build. Only for default build method.
44+
4145
### `android-keystore-base64`
4246

4347
The base64 contents of the android keystore file. Only for default build method.

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ inputs:
2323
build-defines:
2424
description: Set scripting define symbols. For example, RELEASE_VERSION;ENG_VERSION. Only for default build method
2525
required: false
26+
android-keystore-name:
27+
description: The keystore name will be used in the build. Only for default build method.
28+
required: false
2629
android-keystore-base64:
2730
description: The base64 contents of the android keystore file. Only for default build method
2831
required: false

src/build.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ async function run() {
1616
const buildNumber = core.getInput('build-number');
1717
const buildDefines = core.getInput('build-defines');
1818
const buildOptions = core.getInput('build-options');
19+
const androidKeystoreName = core.getInput('android-keystore-name');
1920
const androidKeystoreBase64 = core.getInput('android-keystore-base64');
2021
const androidKeystorePass = core.getInput('android-keystore-pass');
2122
const androidKeyaliasName = core.getInput('android-keyalias-name');
@@ -56,6 +57,9 @@ async function run() {
5657
if (buildOptions) {
5758
buildArgs += ` -buildOptions "${buildOptions}"`;
5859
}
60+
if (androidKeystoreName) {
61+
buildArgs += ` -androidKeystoreName "${androidKeystoreName}"`
62+
}
5963
if (androidKeystoreBase64) {
6064
buildArgs += ` -androidKeystoreBase64 "${androidKeystoreBase64}"`;
6165
}

0 commit comments

Comments
 (0)