-
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.
Add GitHub Actions workflow for Android app distribution with Fastlan…
…e and Firebase
- Loading branch information
1 parent
3059c38
commit d1b14ba
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
.github/workflows/android_fastlane_firebase_app_distribution_workflow.yml
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,48 @@ | ||
name: Android Fastlane App Distribution Workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- mobile-app-stable # The branch that you would like to run the workflow when you push into it. | ||
|
||
jobs: | ||
distribution_to_firebase: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout My Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
|
||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
|
||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.3.5' | ||
bundler-cache: false # Disable bundler-cache to manage dependencies manually | ||
|
||
- name: Update Gemfile.lock platforms | ||
run: | | ||
cd android | ||
bundle lock --add-platform x86_64-linux | ||
bundle lock --add-platform ruby | ||
- name: Install Ruby Dependencies | ||
run: | | ||
cd android | ||
bundle install | ||
- name: Flutter Build Android App And Upload To Firebase | ||
env: | ||
FIREBASE_CLI_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }} | ||
run: | | ||
cd android | ||
bundle exec fastlane android firebase_distribution |