From 34fe0a9b6b22bb3fec2b62ed835ddac1245cae61 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 23 Jan 2026 17:43:47 +0000 Subject: [PATCH] Add GitHub Actions workflow to build APK automatically This workflow builds both debug and release APKs when changes are pushed to the repository. It also uploads the APKs as artifacts for download. https://claude.ai/code/session_01B7TA27ExxcC2p3QBpRW3iB --- .github/workflows/build-apk.yml | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/build-apk.yml diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml new file mode 100644 index 0000000..3a9a8ba --- /dev/null +++ b/.github/workflows/build-apk.yml @@ -0,0 +1,45 @@ +name: Build APK + +on: + push: + branches: [ "main", "master", "develop", "claude/**" ] + pull_request: + branches: [ "main", "master", "develop" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build Debug APK + run: ./gradlew assembleDebug --stacktrace + + - name: Build Release APK + run: ./gradlew assembleRelease --stacktrace + + - name: Upload Debug APK + uses: actions/upload-artifact@v4 + with: + name: app-debug + path: app/build/outputs/apk/debug/app-debug.apk + retention-days: 30 + + - name: Upload Release APK + uses: actions/upload-artifact@v4 + with: + name: app-release + path: app/build/outputs/apk/release/app-release-unsigned.apk + retention-days: 30