Skip to content

Commit

Permalink
Add GitHub Actions workflow for Android app distribution with Fastlan…
Browse files Browse the repository at this point in the history
…e and Firebase
  • Loading branch information
mahmoodhamdi committed Sep 29, 2024
1 parent 3059c38 commit d1b14ba
Showing 1 changed file with 48 additions and 0 deletions.
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

0 comments on commit d1b14ba

Please sign in to comment.