Deploying Android Apps Using GitHub Actions

May 4 2023 · Kotlin 1.7.21, Android 13, Android Studio Electric Eel

Part 1: Automate Releases with GitHub Actions

07. Deploy to Firebase App Distribution

Episode complete

Play next episode

Next
About this episode

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 06. Authenticate Firebase Project Next episode: 08. Authenticate with Google Play Console

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Now that you’ve set up Firebase and stored the secrets, you have to add the job to upload the app to Firebase App Distribution.

Upload Build to Firebase App Distribution

Add the following job to the workflow:

  deploy-firebase:
    needs: [ build ]
    runs-on: ubuntu-latest
    steps:
      - uses: actions/download-artifact@v3
        with:
          name: release.apk
      - name: unzip downloaded APK
        run: unzip app-release-unsigned-signed.apk
      - name: upload artifact to Firebase App Distribution
        uses: wzieba/Firebase-Distribution-Github-Action@v1
        with:
          appId: ${{secrets.FIREBASE_APP_ID}}
          serviceCredentialsFileContent: ${{secrets.SERVICE_ACCOUNT}}
          groups: QA
          file: app-release-unsigned-signed.apk
git commit -m "Add Firebase deploy job"
git push origin master
git tag v0.2 -a -m "Release v0.2"
git push origin master --follow-tags

Visualize The Workflow

On the Actions tab in the repository and click on the latest Test and deploy workflow execution.