forked from MXCzkEVM/datadash-wallet
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (47 loc) · 1.89 KB
/
submit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Submit to Google and Apple
on:
push:
branches:
- google
jobs:
build-apk:
name: Build-aab
runs-on: ubuntu-latest
steps:
- name: Checkout code with submodules
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set Version Code
run: |
echo "Received Number: ${{ github.run_number }}"
echo "VERSION_CODE=${{ github.run_number }}" >> $GITHUB_ENV
echo "Set VERSION_CODE to: ${{ github.run_number }}"
shell: bash
- uses: sheenhx/action-flutter-build-android@v3
with:
keystore-base64: ${{ secrets.ANDROID_RELEASE_KEY }}
keystore-password: "${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }}"
build-cmd: flutter build appbundle --flavor googlePlay --release --build-number=${{ env.VERSION_CODE }}
working-directory: ./
- name: Rename APK
run: mv build/app/outputs/bundle/googlePlayRelease/app-googlePlay-release.aab build/app/outputs/bundle/googlePlayRelease/moonchain.aab
- name: Archive APK
uses: actions/upload-artifact@v4
with:
name: release-apk
# Try running the build locally with the build command to be sure of this path
path: build/app/outputs/bundle/googlePlayRelease/moonchain.aab
- name: Archive symbols
uses: actions/upload-artifact@v4
with:
name: release-symbol
path: build/app/intermediates/merged_native_libs/release/out/lib
- uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: com.moonchain.mxc
releaseFiles: build/app/outputs/bundle/googlePlayRelease/moonchain.aab
track: alpha
status: draft
debugSymbols: build/app/intermediates/merged_native_libs/release/out/lib