Skip to content

Instantly share code, notes, and snippets.

@raipradeep
Created December 26, 2024 11:08
Show Gist options
  • Save raipradeep/7a3b2007c26c89bb10f89eaa187779e3 to your computer and use it in GitHub Desktop.
Save raipradeep/7a3b2007c26c89bb10f89eaa187779e3 to your computer and use it in GitHub Desktop.
Git Action for Firebase Distribution with Android
name: Integrate Firebase Distributions + Github Actions
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ branch_name
jobs:
builds:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '17'
- name: Build with Gradle
run: |
chmod +x ./gradlew
./gradlew assembleSIT_Release
- name: Execute Gradle command - assembleSIT_Release
run: ./gradlew assembleSIT_Release
- name: Upload Artifact To Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{ secrets.FIREBASE_APP_ID_SIT }}
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
groups: $GroupName In Firebase Distributor
releaseNotes: "Anything you want"
file: $Path/your_appNAme.apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment