Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Upload to Firebase App Distribution #118

Upload to Firebase App Distribution

Upload to Firebase App Distribution #118

Workflow file for this run

name: Upload to Firebase App Distribution
on:
workflow_run:
workflows:
- Build
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Copy google-services.json
env:
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICE_JSON }}
run: echo "$GOOGLE_SERVICES" | base64 --decode > ./app/google-services.json
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build project
run: ./gradlew assembleDebug
- name: Upload artifact to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{ secrets.FIREBASE_DEV_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
groups: developer
file: app/build/outputs/apk/debug/app-debug.apk