-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (41 loc) · 1.54 KB
/
deploy playstore beta.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: Deploy Playstore Beta
on:
workflow_call:
workflow_dispatch:
jobs:
deploy-playstore-beta:
name: Deploy Playstore Beta
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
ref: 'beta'
- name: Decode Android keystore
run: echo "${{ secrets.ANDROID_KEYSTORE }}" | base64 --decode > android/dimipay-keystore.jks
- name: Decode Android key properties
run: echo "${{ secrets.ANDROID_KEY_PROPERTIES }}" > android/key.properties
- name: Decode Android Service Account
run: echo "${{ secrets.PRODUCTION_CREDENTIAL_FILE }}" | base64 --decode > android/play-store-credential.json
- name: Decode Google Service Json
run: echo "${{ secrets.ANDROID_GOOGLE_SERVICE_JSON }}" | base64 --decode > android/app/google-services.json
- name: Decode Firebase Options
run: echo "${{ secrets.FIREBASE_OPTIONS }}" > lib/firebase_options.dart
- name: make env directory
run: mkdir env
- name: add .env file
run: echo "" > env/.env
- name: Setup Java to compile the Android project
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 17.0
- name: Install flutter sdk
uses: subosito/flutter-action@v2.16.0
with:
channel: stable
cache: true
- run: flutter pub get
- run: flutter build appbundle --release
- run: fastlane beta
working-directory: ./android