Skip to content

Commit 92cc723

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
fix(ci): only use release keystore when secret is available, else debug
1 parent 6610525 commit 92cc723

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,18 @@ jobs:
5757
JNISERVICE_KEYSTORE_B64: ${{ secrets.JNISERVICE_KEYSTORE_B64 }}
5858

5959
- name: Build APK
60-
run: make apk
60+
run: |
61+
EXTRA_ENV=""
62+
if [ -f build/release.keystore ]; then
63+
export JNISERVICE_KEYSTORE=build/release.keystore
64+
export JNISERVICE_KEYSTORE_PASSWORD="${KS_PASSWORD}"
65+
fi
66+
make apk
6167
env:
6268
DIST_GOARCH: ${{ matrix.goarch }}
6369
ANDROID_SDK: /usr/local/lib/android/sdk
6470
DIST_NDK: /usr/local/lib/android/sdk/ndk/27.0.12077973
65-
JNISERVICE_KEYSTORE: build/release.keystore
66-
JNISERVICE_KEYSTORE_PASSWORD: ${{ secrets.JNISERVICE_KEYSTORE_PASSWORD }}
71+
KS_PASSWORD: ${{ secrets.JNISERVICE_KEYSTORE_PASSWORD }}
6772

6873
- name: Prepare release artifacts with descriptive names
6974
run: |

0 commit comments

Comments
 (0)