Skip to content

Commit 00de2fc

Browse files
committed
.github: add secrets to fix android build
1 parent f7946c1 commit 00de2fc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@ jobs:
2121
with:
2222
channel: 'stable'
2323

24+
- name: Save the store key properties to android/key.properties
25+
env:
26+
ANDROID_STORE_KEY_PROPERTIES: ${{ secrets.ANDROID_STORE_KEY_PROPERTIES }}
27+
run: |
28+
echo $ANDROID_STORE_KEY_PROPERTIES > android/key.properties
29+
30+
- name: Decode the store key to android/GooglePlaystore.jks
31+
env:
32+
GOOGLE_PLAYSTORE_JKS_BASE64: ${{ secrets.GOOGLE_PLAYSTORE_JKS_BASE64 }}
33+
run: |
34+
echo $GOOGLE_PLAYSTORE_JKS_BASE64 | base64 --decode > android/GooglePlaystore.jks
35+
2436
- run: flutter --version
2537
- run: flutter pub get
2638
- run: flutter build apk

0 commit comments

Comments
 (0)