forked from openMF/mobile-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Fixed Fastlane & Firebase App Distribution Workflow (openMF#1822)
* Chore: Updated Fastlane and CI for release This commit adds Fastlane for automating the Android release process and configures CI for internal, beta, and production releases using GitHub Actions. The following changes were made: - Added Fastlane configuration files for building, testing, and deploying the app. - Added GitHub Actions workflows for triggering internal, beta, and production releases. - Updated .gitignore to exclude Fastlane report files. - Updated dependency versions in Gemfile.lock. - Added a README for Fastlane. - Updated the make_site workflow to trigger on released releases instead of published releases.
- Loading branch information
Showing
13 changed files
with
283 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,23 @@ on: | |
- internal | ||
- beta | ||
|
||
publish_to_play_store: | ||
required: false | ||
default: false | ||
description: Publish to Play Store? | ||
type: boolean | ||
|
||
publish_ios: | ||
required: false | ||
default: false | ||
description: Publish to Firebase iOS App Distribution? | ||
type: boolean | ||
|
||
env: | ||
SUPPLY_UPLOAD_MAX_RETRIES: 5 | ||
|
||
jobs: | ||
build_desktop_app: | ||
build_desktop_and_ios_app: | ||
strategy: | ||
matrix: | ||
os: | ||
|
@@ -41,9 +53,28 @@ jobs: | |
NOTARIZATION_TEAM_ID: ${{ secrets.NOTARIZATION_TEAM_ID }} | ||
run: ./gradlew packageReleaseDistributionForCurrentOS | ||
|
||
app_build: | ||
- name: Configure Ruby | ||
if: matrix.os == 'macos-latest' | ||
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0 | ||
with: | ||
bundler-cache: true | ||
|
||
- name: Install Fastlane | ||
if: matrix.os == 'macos-latest' | ||
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: Build iOS App | ||
if: matrix.os == 'macos-latest' | ||
continue-on-error: true | ||
run: bundle exec fastlane ios build_ios | ||
|
||
distribute_android_app: | ||
name: Github, Firebase Release | ||
needs: [ build_desktop_app ] | ||
needs: [ build_desktop_and_ios_app ] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
@@ -58,11 +89,6 @@ jobs: | |
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.2' | ||
bundler-cache: true | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
|
@@ -122,7 +148,7 @@ jobs: | |
./mifospay-desktop/build/compose/binaries/main-release/msi/*.msi | ||
./mifospay-desktop/build/compose/binaries/main-release/deb/*.deb | ||
./mifospay-desktop/build/compose/binaries/main-release/dmg/*.dmg | ||
- name: ☁️ Deploy to Firebase | ||
env: | ||
|
@@ -135,9 +161,47 @@ jobs: | |
- name: Print `git status` | ||
run: git status | ||
|
||
distribute_ios_app: | ||
name: Build iOS App | ||
if: ${{ github.event.inputs.release_type == 'beta' && github.event.inputs.publish_ios == true }} | ||
needs: [ distribute_android_app ] | ||
runs-on: macos-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
- name: Configure Ruby | ||
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0 | ||
with: | ||
bundler-cache: true | ||
|
||
- name: Install Fastlane | ||
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: Upload iOS App to Firebase Distribution | ||
run: bundle exec fastlane ios distribute_ios_app | ||
|
||
- name: Print `git status` | ||
run: git status | ||
|
||
play_publish: | ||
name: Play Publish | ||
runs-on: ubuntu-latest | ||
if: ${{ inputs.publish_to_play_store == true }} | ||
runs-on: macos-latest | ||
concurrency: | ||
group: playstore_deploy | ||
permissions: | ||
|
@@ -153,11 +217,18 @@ jobs: | |
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
- name: Configure Ruby | ||
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0 | ||
with: | ||
ruby-version: '3.2' | ||
bundler-cache: true | ||
|
||
- name: Install Fastlane | ||
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: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.3.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.