-
Notifications
You must be signed in to change notification settings - Fork 10
53 lines (44 loc) · 1.46 KB
/
ci-android-aab.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
name: Android Play Store release build aab
on:
workflow_dispatch:
inputs:
versionName:
description: 'User-facing release version name'
required: true
default: "1.0.0"
versionCode:
description: 'versionCode or build number'
required: true
default: '1'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
cache: 'gradle'
# Setup the flutter environment.
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.7.5'
channel: 'stable'
cache: true
# Get flutter dependencies.
- run: flutter pub get
- name: Retrieve secrets
env:
KEYSTORE_B64: ${{ secrets.KEYSTORE_B64 }}
KEY_PROPERTIES_B64: ${{ secrets.KEY_PROPERTIES_B64 }}
run: |
echo $KEYSTORE_B64 | base64 --decode > android/app/ueno-upload-keystore.jks
echo $KEY_PROPERTIES_B64 | base64 --decode > android/key.properties
# Build apk.
- run: flutter build appbundle --release --build-number=${{ github.event.inputs.versionCode }} --build-name=${{ github.event.inputs.versionName }} --dart-define=SENTRY_DSN=${{ secrets.SENTRY_DSN }}
# Upload generated apk to the artifacts.
- uses: actions/upload-artifact@v3
with:
name: release-aab
path: build/app/outputs/bundle/release/app-release.aab