-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yaml
69 lines (61 loc) · 1.97 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: 'KMP Publish iOS App on Firebase'
description: 'Build and publish iOS application on Firebase'
author: 'Mifos Initiative'
branding:
icon: 'package'
color: 'blue'
inputs:
ios_package_name:
description: 'Name of the Android project module'
required: true
firebase_creds:
description: 'Firebase credentials'
required: true
tester_groups:
description: 'Firebase Tester Group'
required: true
runs:
using: composite
steps:
# Cache Gradle dependencies to speed up builds
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.konan
build
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
- name: Configure Ruby
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0
with:
bundler-cache: true
- 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:
GOOGLE_SERVICES: ${{ inputs.google_services }}
FIREBASE_CREDS: ${{ inputs.firebase_creds }}
run: |
mkdir -p secrets
# Inflate Firebase credentials
touch secrets/firebaseAppDistributionServiceCredentialsFile.json
echo $FIREBASE_CREDS | base64 --decode > secrets/firebaseAppDistributionServiceCredentialsFile.json
- name: Upload iOS App to Firebase Distribution
shell: bash
run: bundle exec fastlane ios deploy_on_firebase \
serviceCredsFile:secrets/firebaseAppDistributionServiceCredentialsFile.json \
groups:${{ inputs.tester_groups }}
- name: Upload iOS Artifact
uses: actions/upload-artifact@v4
with:
name: ios-app
retention-days: 1
compression-level: 9
path: '**/*.ipa'