-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.44 KB
/
main.yaml
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
on:
push:
branches:
- production
- beta
- alpha
- internal
name: "Build & Release"
jobs:
build:
name: Build & Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '11'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.22.2'
- name: Decode android/app/keystore.jks
run: echo "${{ secrets.KEYSTORE_JKS }}" | base64 --decode > android/app/keystore.jks
- name: Decode android/key.properties
run: echo "${{ secrets.KEY_PROPERTIES }}" | base64 --decode > android/key.properties
- run: flutter pub get
- run: flutter build appbundle --build-number=${{ github.run_number }} --build-name=2024.02.${{ github.run_number }} --obfuscate --split-debug-info=./build/app/outputs/symbols
- uses: r0adkll/upload-google-play@v1.1.3
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: com.kateile.stg
releaseFiles: build/app/outputs/bundle/release/*.aab
track: ${{ github.ref_name }}
inAppUpdatePriority: 2
changesNotSentForReview: false
whatsNewDirectory: whatsnew
mappingFile: build/app/outputs/mapping/release/mapping.txt