-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yaml
44 lines (39 loc) · 1.34 KB
/
action.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
name: 'KMP Promote Android App to Production'
description: 'Promote the Android application to the Play Store Production track'
author: 'Mifos Initiative'
branding:
icon: 'upload-cloud'
color: 'purple'
inputs:
playstore_creds:
description: 'Firebase credentials JSON file'
required: true
runs:
using: composite
steps:
# Setup Ruby for Fastlane
- name: Configure Ruby
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0
with:
bundler-cache: true
# Install Fastlane and plugins for Play Store deployment
- name: Install Fastlane
shell: bash
run: |
gem install bundler:2.2.27
bundle install --jobs 4 --retry 3
bundle exec fastlane add_plugin firebase_app_distribution
bundle exec fastlane add_plugin increment_build_number
- name: Inflate Secrets
shell: bash
env:
PLAYSTORE_CREDS: ${{ inputs.playstore_creds }}
run: |
mkdir -p secrets
# Inflate PlayStore credentials
touch secrets/playStorePublishServiceCredentialsFile.json
echo $PLAYSTORE_CREDS | base64 --decode > secrets/playStorePublishServiceCredentialsFile.json
# Promote Android App to Production
- name: Promote Android App to Production
shell: bash
run: bundle exec fastlane android promote_to_production