<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ishita Macwan on Medium]]></title>
        <description><![CDATA[Stories by Ishita Macwan on Medium]]></description>
        <link>https://medium.com/@ishita.macwan?source=rss-4fd257c2bf28------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*j7R4humC3_n8GQi-</url>
            <title>Stories by Ishita Macwan on Medium</title>
            <link>https://medium.com/@ishita.macwan?source=rss-4fd257c2bf28------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 02:56:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ishita.macwan/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ Android CI/CD Pipeline with GitHub Actions — A Complete Guide]]></title>
            <link>https://medium.com/@ishita.macwan/android-ci-cd-pipeline-with-github-actions-a-complete-guide-3ddac1c13fff?source=rss-4fd257c2bf28------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ddac1c13fff</guid>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[mobile-devops]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[play-store-deployment]]></category>
            <dc:creator><![CDATA[Ishita Macwan]]></dc:creator>
            <pubDate>Mon, 07 Jul 2025 14:53:12 GMT</pubDate>
            <atom:updated>2025-08-05T09:59:44.738Z</atom:updated>
            <content:encoded><![CDATA[<h3>🚀 Android CI/CD Pipeline with GitHub Actions — A Complete Guide</h3><blockquote>by Ishita Macwan — <a href="https://kalagato.ai/">kalagato.ai</a><br>Tired of manually building APKs and pushing them to Slack or the Play Store? Let’s automate it all.</blockquote><blockquote>In this guide, I’ll show you how to set up a <strong>CI/CD pipeline</strong> for your Android app using <strong>GitHub Actions</strong> — from building and testing to uploading artifacts and notifying your team on Slack.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mwax9i3jEw-i3Wpqtsk47Q.png" /></figure><blockquote><strong>🤖 What is CI/CD?</strong></blockquote><p><strong>CI/CD</strong> stands for:</p><p><strong>Continuous Integration (CI)</strong>: Automatically building and testing your app when you push changes.</p><p><strong>Continuous Delivery (CD)</strong>: Automatically generating signed APKs or AABs and optionally uploading them to Slack or the Play Store.</p><p>With GitHub Actions, all this runs <strong>automatically</strong> in the cloud whenever you push code to a branch like testing-app.</p><blockquote>🧰<strong> Prerequisites</strong></blockquote><p>Before you start, ensure:</p><ul><li>Your project is an Android app using <strong>Gradle</strong>.</li><li>You have a <strong>keystore</strong> for signing.</li><li>You’ve added the required <strong>GitHub secrets</strong> (explained below).</li></ul><blockquote><strong>📁 Project Structure</strong></blockquote><p>Create your GitHub Actions workflow here:</p><p><em>.github/workflows/AndroidBuild.yml</em></p><blockquote><strong>✅ What This Pipeline Does</strong></blockquote><p>When you push to testing-app:</p><ol><li>Checks out the code</li><li>Sets up Java 17</li><li>Runs lint and unit tests</li><li>Builds debug &amp; release APKs and AABs</li><li>Uploads artifacts</li><li>Notifies Slack</li><li>Uploads AAB to Play Store Internal Testing.</li></ol><blockquote><strong>🔐 GitHub Secrets You’ll Need</strong></blockquote><p>Go to your repo → Settings → Secrets → Actions → New Repository Secret and add:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BfjA8rk7vWo3vbfoPS5txQ.png" /></figure><blockquote><strong>🔍 Where to Get the Secrets</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UcEG3j4a2cgHc1S-Tecs4w.png" /></figure><blockquote><strong>🧾 Full YAML File (Reference)</strong></blockquote><p>Paste this into <em>.github/workflows/AndroidBuild.yml</em>:</p><pre>name: Android CI/CD<br><br>on:<br>  push:<br>    branches:<br>      - testing-app<br>  pull_request:<br>    branches:<br>      - testing-app<br>  workflow_dispatch:<br><br>jobs:<br>  build:<br>    name: 🛠 Build, Test &amp; Generate Artifacts<br>    runs-on: ubuntu-latest<br><br>    steps:<br>      - name: 📥 Checkout code<br>        uses: actions/checkout@v3<br><br>      - name: Test Service Account JSON Access<br>        run: |<br>          echo &quot;${{ secrets.SERVICE_ACCOUNT_JSON }}&quot; | head -n 10<br><br>      - name: ☕ Set up JDK 17<br>        uses: actions/setup-java@v3<br>        with:<br>          distribution: temurin<br>          java-version: 17<br><br>      - name: ⚡ Cache Gradle dependencies<br>        uses: actions/cache@v3<br>        with:<br>          path: |<br>            ~/.gradle/caches<br>          key: ${{ runner.os }}-gradle-v2-${{ hashFiles(&#39;**/*.gradle*&#39;, &#39;**/gradle-wrapper.properties&#39;) }}<br>          restore-keys: |<br>            ${{ runner.os }}-gradle<br><br>      - name: ✅ Make gradlew executable<br>        run: chmod +x ./gradlew<br><br>      - name: 🔄 Validate Gradle wrapper<br>        run: ./gradlew --version<br><br>      - name: 🧹 Run Lint checks<br>        run: ./gradlew lint --stacktrace<br><br>      - name: 🧪 Run Unit Tests<br>        run: ./gradlew testDebugUnitTest --stacktrace<br><br>      - name: 📦 Decode and Store Keystore<br>        run: |<br>          mkdir -p $HOME/HOME/user/projects/yourappfolder/app/<br>          echo &quot;${{ secrets.YOURAPP_KEYSTORE_FILE }}&quot; | base64 --decode &gt;$HOME/user/projects/yourappfolder/app/yourappfolder.jks<br>        env:<br>          YOURAPP_KEYSTORE_FILE: ${{ secrets.YOURAPP_KEYSTORE_FILE }}<br><br>      - name: 🔐 Export Signing Environment<br>        run: |<br>          echo &quot;SIGNING_KEY_ALIAS=${{ secrets.YOURAPP_KEY_ALIAS }}&quot; &gt;&gt; $GITHUB_ENV<br>          echo &quot;SIGNING_KEY_PASSWORD=${{ secrets.YOURAPP_KEY_PASSWORD }}&quot; &gt;&gt; $GITHUB_ENV<br>          echo &quot;SIGNING_STORE_PASSWORD=${{ secrets.YOURAPP_KEYSTORE_PASSWORD }}&quot; &gt;&gt; $GITHUB_ENV<br>          echo &quot;SIGNING_STORE_FILE=$HOME/user/projects/yourappfolder/app/yourappfolder.jks&quot; &gt;&gt; $GITHUB_ENV<br><br>      - name: 🛠️ Build Debug APK<br>        run: ./gradlew assembleDebug --stacktrace<br><br>      - name: 📦 Build Release APK and AAB<br>        run: ./gradlew assembleRelease bundleRelease --stacktrace<br><br>      - name: 📤 Upload Debug APK<br>        uses: actions/upload-artifact@v4<br>        with:<br>          name: app-debug.apk<br>          path: app/build/outputs/apk/debug/app-debug.apk<br><br><br>      - name: 📤 Upload Release APK<br>        uses: actions/upload-artifact@v4<br>        with:<br>          name: app-release.apk<br>          path: app/build/outputs/apk/release/app-release.apk<br><br>      - name: 📤 Upload Release AAB (App Bundle)<br>        uses: actions/upload-artifact@v4<br>        with:<br>          name: app-release.aab<br>          path: app/build/outputs/bundle/release/app-release.aab<br><br>      - name: Get the latest commit message<br>        id: get_commit<br>        run: |<br>          last_commit=$(git log -1 --pretty=format:&quot;%s&quot;)<br>          echo &quot;last_commit=$last_commit&quot; &gt;&gt; $GITHUB_ENV<br><br>      - name: Create whatsNew file for release notes<br>        run: |<br>          mkdir -p whatsnew<br>          echo &quot;$last_commit&quot; &gt; whatsnew/whatsnew-en-US<br><br>      - name: Upload to Internal Testing Track<br>        uses: r0adkll/upload-google-play@v1<br>        with:<br>          packageName: com.example.app<br>          releaseFiles: app/build/outputs/bundle/release/app-release.aab<br>          track: internal<br>          serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}<br>          changesNotSentForReview: true<br>          whatsNewDirectory: whatsnew<br>          mappingFile: app/build/outputs/mapping/release/mapping.txt<br><br><br>      - name: Send Debug APK to Slack<br>        uses: MeilCli/slack-upload-file@v4<br>        with:<br>          slack_token: ${{ secrets.SLACK_BOT_TOKEN }} # Your Slack Bot Token secret<br>          file_path: app/build/outputs/apk/debug/app-debug.apk # Path to the APK<br>          channel_id: ${{ secrets.SLACK_CHANNEL_ID }} # Or #your-channel-name<br>          file_name: app-debug.apk # Dynamic filename for clarity<br>          initial_comment: &quot;New Android debug APK available! Commit: ${{ env.last_commit }}&quot;<br><br>      - name: Send Release APK to Slack<br>        uses: MeilCli/slack-upload-file@v4<br>        with:<br>          slack_token: ${{ secrets.SLACK_BOT_TOKEN }} # Your Slack Bot Token secret<br>          file_path: app/build/outputs/apk/release/app-release.apk # Path to the APK<br>          channel_id: ${{ secrets.SLACK_CHANNEL_ID }} # Or #your-channel-name<br>          file_name: app-release.apk # Dynamic filename for clarity<br>          initial_comment: &quot;New Android release APK available! Commit: ${{ env.last_commit }}&quot;</pre><blockquote><strong>🎉 You’re All Set!</strong></blockquote><p>Now, every push to testing-app will:</p><p>✅ Build the app<br> 🧪 Run tests<br> 📦 Generate APK &amp; AAB<br> 📤 Upload them as artifacts<br> 📲 Push builds to Slack<br> 🚀 Upload to Play Store Internal Testing</p><blockquote><strong>🧯 Troubleshooting Tips</strong></blockquote><ul><li>GitHub Actions failing? Check the <strong>Actions tab</strong> for logs.</li><li>Play Store upload failing? Recheck the <strong>API access + service account permissions</strong>.</li><li>Gradle version mismatch? Match it in gradle-wrapper.properties and your JDK.</li><li>Slack upload failed? Regenerate and re-scope the <strong>Slack bot token</strong>.</li><li>You need to Add Slack bot to your channel.</li></ul><p>If you found this useful, drop a ❤️ or follow for more dev automation content!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ddac1c13fff" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>