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
name: Android Fastlane with Firebase App Distribution Workflow | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
distribute_to_firebase: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout my repo code | |
uses: actions/checkout@v2 | |
- name: Set up JDK 18 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '18' | |
distribution: 'temurin' | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.3.4" | |
bundler-cache: true | |
working-directory: android | |
- name: Build and Distribute App | |
env: | |
FIREBASE_CLI_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }} | |
run: | | |
bundle exec fastlane android firebase_distribution | |
working-directory: android | |