Skip to content

Commit cdb8156

Browse files
committed
fix: improve Android release build signing configuration
1 parent 2be2136 commit cdb8156

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/android-release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
env:
99
NODE_VERSION: '18'
1010
JAVA_VERSION: '17'
11+
KEYSTORE_FILE: 'release.jks'
1112

1213
jobs:
1314
build:
@@ -29,7 +30,7 @@ jobs:
2930
with:
3031
distribution: 'temurin'
3132
java-version: ${{ env.JAVA_VERSION }}
32-
33+
3334
- name: Install dependencies
3435
run: npm ci
3536

@@ -43,15 +44,15 @@ jobs:
4344
env:
4445
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
4546
run: |
46-
echo $KEYSTORE_BASE64 | base64 -d > android/app/release.jks
47+
echo $KEYSTORE_BASE64 | base64 -d > android/app/${{ env.KEYSTORE_FILE }}
4748
4849
- name: Generate keystore.properties
4950
run: |
5051
cat <<EOF > android/keystore.properties
5152
storePassword=${{ secrets.KEYSTORE_PASSWORD }}
5253
keyPassword=${{ secrets.KEY_PASSWORD }}
5354
keyAlias=${{ secrets.KEY_ALIAS }}
54-
storeFile=app/release.jks
55+
storeFile=${{ env.KEYSTORE_FILE }}
5556
EOF
5657
5758
- name: Build Release APKs

0 commit comments

Comments
 (0)