Update 2.2.1 #20
Workflow file for this run
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: Deploy to Firebase App Tester | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
deploy_internal: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gradle/wrapper-validation-action@v2 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- uses: gradle/gradle-build-action@v3 | |
- name: Setup Ruby (for Fastlane) | |
uses: ruby/setup-ruby@v1.171.0 | |
with: | |
ruby-version: '3.3' # Not needed with a .ruby-version file | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Install Fastlane | |
run: bundle install | |
# Decode Secrets | |
- name: Decode secrets | |
run: | | |
echo "$KEYSTORE_PROD" > app/keystore.jks.base64 | |
base64 -d -i app/keystore.jks.base64 > app/keystore.jks | |
echo "$FIREBASE_APP_DISTRIBUTION_JSON" > app/firebase-app-distribution.json.base64 | |
base64 -d -i app/firebase-app-distribution.json.base64 > app/firebase-app-distribution.json | |
echo "$GOOGLE_PLAY_DISTRIBUTION_JSON" > app/google-play-distribution.json.base64 | |
base64 -d -i app/google-play-distribution.json.base64 > app/google-play-distribution.json | |
echo "$GOOGLE_SERVICES_JSON" > app/google-services.json.base64 | |
base64 -d -i app/google-services.json.base64 > app/google-services.json | |
env: | |
KEYSTORE_PROD: ${{ secrets.KEYSTORE_PROD }} | |
FIREBASE_APP_DISTRIBUTION_JSON: ${{ secrets.FIREBASE_APP_DISTRIBUTION_JSON }} | |
GOOGLE_PLAY_DISTRIBUTION_JSON: ${{ secrets.GOOGLE_PLAY_DISTRIBUTION_JSON }} | |
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
#Fastlane: Build .aab and deploy it | |
- name: Build production App Bundle and deploy to Firebase App Tester | |
run: bundle exec fastlane deploy_firebase | |
env: | |
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }} | |
FIREBASE_TESTER_EMAILS: ${{ vars.FIREBASE_TESTER_EMAILS }} | |
SIGNING_KEYSTORE: ${{ github.workspace }}/app/keystore.jks | |
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} | |
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} | |
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }} |