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: Setup fox iOS Firebase App Distribution
- Loading branch information
Showing
7 changed files
with
122 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ env: | |
SUPPLY_UPLOAD_MAX_RETRIES: 5 | ||
|
||
jobs: | ||
build_desktop_app: | ||
build_desktop_and_ios_app: | ||
strategy: | ||
matrix: | ||
os: | ||
|
@@ -47,7 +47,23 @@ 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 | ||
- name: Build iOS App | ||
if: ${{ matrix.os }} == 'macos-latest' | ||
run: bundle exec fastlane ios build_ios | ||
|
||
distribute_android_app: | ||
name: Github, Firebase Release | ||
needs: [ build_desktop_app ] | ||
runs-on: ubuntu-latest | ||
|
@@ -131,6 +147,7 @@ jobs: | |
|
||
- name: ☁️ Deploy to Firebase | ||
if: github.event.inputs.release_type == 'beta' | ||
env: | ||
KEYSTORE_PASSWORD: ${{ secrets.ORIGINAL_KEYSTORE_FILE_PASSWORD }} | ||
KEYSTORE_ALIAS: ${{ secrets.ORIGINAL_KEYSTORE_ALIAS }} | ||
|
@@ -141,10 +158,45 @@ jobs: | |
- name: Print `git status` | ||
run: git status | ||
|
||
distribute_ios_app: | ||
name: Build iOS App | ||
if: github.event.inputs.release_type == 'beta' | ||
needs: [ app_build ] | ||
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 | ||
- 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 | ||
if: ${{ inputs.publish_to_play_store == true }} | ||
runs-on: ubuntu-latest | ||
runs-on: macos-latest | ||
concurrency: | ||
group: playstore_deploy | ||
permissions: | ||
|
@@ -168,7 +220,6 @@ jobs: | |
- name: Install Fastlane | ||
run: | | ||
gem install bundler:2.2.27 | ||
bundle config path vendor/bundle | ||
bundle install --jobs 4 --retry 3 | ||
- name: Setup Gradle | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Autogenerated by fastlane | ||
# | ||
# Ensure this file is checked in to source control! | ||
# Ensure this file is checked in to source control! | ||
gem 'fastlane-plugin-firebase_app_distribution' | ||
gem 'fastlane-plugin-increment_build_number' |
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