File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ pull_request :
3
+ branches :
4
+ - master
5
+ push :
6
+ branches :
7
+ - master
8
+ env :
9
+ PROPERTIES_PATH : " ./android/key.properties"
10
+
11
+ name : " Build & Release"
12
+ jobs :
13
+ build :
14
+ name : Build & Release
15
+ runs-on : macos-latest
16
+ steps :
17
+ - uses : actions/checkout@v3
18
+ - uses : actions/setup-java@v2
19
+ with :
20
+ distribution : " zulu"
21
+ java-version : " 11"
22
+ - uses : subosito/flutter-action@v2
23
+ with :
24
+ channel : " stable"
25
+
26
+ # Creating the key.properties file
27
+ - run : |
28
+ echo keyPassword=\${{ secrets.KEY_STORE }} > ${{env.PROPERTIES_PATH}}
29
+ echo storePassword=\${{ secrets.KEY_PASSWORD }} >> ${{env.PROPERTIES_PATH}}
30
+ echo keyAlias=\${{ secrets.KEY_ALIAS }} >> ${{env.PROPERTIES_PATH}}
31
+ # Decoding base64 key into a file
32
+ - run : echo "${{ secrets.KEYSTORE2 }}" | base64 --decode > android/app/key.jks
33
+
34
+ # # Get dependencies and make assigned appbundle
35
+ - run : |
36
+ flutter pub get
37
+ flutter build appbundle
38
+
39
+ # build apk
40
+ - run : flutter build apk --split-per-abi
41
+
42
+ # # Build no-codesign for ios
43
+ # - run: |
44
+ # flutter build ios --no-codesign
45
+ # cd build/ios/iphoneos
46
+ # mkdir Payload
47
+ # cd Payload
48
+ # ln -s ../Runner.app
49
+ # cd ..
50
+ # zip -r app.ipa Payload
51
+
52
+ - name : Push to Releases
53
+ uses : ncipollo/release-action@v1
54
+ with :
55
+ artifacts : " build/app/outputs/bundle/release/*,build/app/outputs/flutter-apk/*"
56
+ tag : v1.9.0+${{ github.run_number }}
57
+ token : ${{ secrets.TOKEN }}
You can’t perform that action at this time.
0 commit comments