-
-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (49 loc) · 1.48 KB
/
build_app.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
44
45
46
47
48
49
50
51
52
on:
workflow_dispatch:
inputs:
buildNumber:
description: 'Build Number'
required: true
type: string
versionName:
description: 'Version Name'
required: true
type: string
name: Test, Build and Release apk
permissions:
contents: write
jobs:
build:
defaults:
run:
working-directory: ./app
name: Build APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version-file: app/pubspec.yaml
- run: flutter pub get
- run: flutter analyze .
- name: Decode Keystore
env:
ENCODED_KEYSTORE: ${{ secrets.KEYSTORE_BASE64 }}
DECODED_KEYSTORE_PATH: android/app/keystore.jks
run: |
echo $ENCODED_KEYSTORE > keystore_base64.txt
base64 -d keystore_base64.txt > $DECODED_KEYSTORE_PATH
#- run: flutter build apk --build-number $GITHUB_RUN_NUMBER
- run: flutter build aab --build-number ${{ inputs.buildNumber }} --build-name ${{ inputs.versionName }}
- name: Upload to Google Play
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: dev.uekoetter.passkit
releaseFiles: app/build/app/outputs/bundle/release/app-release.aab
track: production