Loading video player...
In this video, we build a GitHub Actions CI/CD pipeline for a multi-build variant Android app. You’ll see how to move from managing secrets in local.properties during local development to loading those same secrets securely in GitHub Actions at runtime. The workflow is designed to support multiple Android build variants, lets you choose the branch and variant when triggering the pipeline, classifies the selected variant into environment, tier, and build type, and then runs the correct Gradle task to generate the APK. The video also covers: Creating a workflow file under .github/workflows Using workflow_dispatch inputs for branch and build variant selection Supporting variants across QA, staging, and production Extracting environment, flavor tier, and build type from the selected variant Configuring Java in GitHub Actions Loading common, environment-specific, and tier-specific secrets from GitHub secrets Handling release signing secrets only for release builds Building the APK with Gradle Uploading the generated APK as a workflow artifact You’ll also see a full demo of running the workflow for a QA free debug build and downloading the generated APK from the Actions run. This is a practical continuation of the Android CI/CD series and helps you set up a cleaner and more scalable pipeline for apps with multiple build variants. #Android #AndroidDevelopment #CICD #GitHubActions #AndroidCICD #Gradle #MobileDev #BuildAutomation #DevOps #APK #CI #CD #AndroidBuildVariants #GitHubSecrets 00:00:00 - Android CI/CD Setup for Multi-Build Variants 00:00:39 - Creating the GitHub Actions Workflow File 00:01:35 - Defining Workflow Inputs and Build Variant Options 00:03:03 - Parsing Environment, Tier, and Build Type 00:04:59 - Managing GitHub Secrets for Variant-Based Builds 00:06:56 - Running Gradle Build and Uploading the APK 00:08:15 - Triggering the Workflow and Verifying the Artifact 00:09:10 - CI/CD Best Practices and Final Takeaways Follow me on X: https://x.com/anilvdeshpande Official WebSite: https://codetutorhub.dev/ GitHub link to code: https://github.com/AnilDeshpande/VarientDemoApplication/tree/live-coding