1
+ name : Build Android
2
+ on :
3
+ workflow_call :
4
+ inputs :
5
+ ref :
6
+ required : true
7
+ type : string
8
+ secrets :
9
+ DECRYPTKEY_PLAYSTORE_SIGNING_KEY :
10
+ required : true
11
+ DECRYPTKEY_PROPERTIES :
12
+ required : true
13
+ jobs :
14
+ build_android_apk :
15
+ name : APK file
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - name : Checkout application
19
+ uses : actions/checkout@v4
20
+ with :
21
+ ref : ${{ inputs.ref }}
22
+
23
+ - name : Common flutter setup
24
+ uses : ./.github/actions/flutter-common
25
+
26
+ - name : Decrypt config files
27
+ run : |
28
+ cd ./fastlane/metadata/envfiles
29
+ chmod +x ./decrypt_secrets.sh
30
+ ./decrypt_secrets.sh
31
+ shell : bash
32
+ env :
33
+ DECRYPTKEY_PLAYSTORE_SIGNING_KEY : ${{ secrets.DECRYPTKEY_PLAYSTORE_SIGNING_KEY }}
34
+ DECRYPTKEY_PROPERTIES : ${{ secrets.DECRYPTKEY_PROPERTIES }}
35
+
36
+ - name : Build APK
37
+ run : flutter build apk --release
38
+
39
+ - uses : actions/upload-artifact@v4
40
+ with :
41
+ name : builds-apk
42
+ path : build/app/outputs/flutter-apk/app-release.apk
43
+
44
+ build_android_aab :
45
+ name : AAB file
46
+ runs-on : ubuntu-latest
47
+ steps :
48
+ - name : Checkout application
49
+ uses : actions/checkout@v4
50
+ with :
51
+ ref : ${{ inputs.ref }}
52
+
53
+ - name : Common setup
54
+ uses : ./.github/actions/flutter-common
55
+
56
+ - name : Decrypt config files
57
+ run : |
58
+ cd ./fastlane/metadata/envfiles
59
+ chmod +x ./decrypt_secrets.sh
60
+ ./decrypt_secrets.sh
61
+ shell : bash
62
+ env :
63
+ DECRYPTKEY_PLAYSTORE : ${{ secrets.DECRYPTKEY_PLAYSTORE }}
64
+ DECRYPTKEY_PLAYSTORE_SIGNING_KEY : ${{ secrets.DECRYPTKEY_PLAYSTORE_SIGNING_KEY }}
65
+ DECRYPTKEY_PROPERTIES : ${{ secrets.DECRYPTKEY_PROPERTIES }}
66
+
67
+ - name : Build AAB
68
+ run : flutter build appbundle --release
69
+
70
+ - uses : actions/upload-artifact@v4
71
+ with :
72
+ name : builds-aab
73
+ path : build/app/outputs/bundle/release/app-release.aab
0 commit comments