diff --git a/app/.github/workflows/android-apk-build.yml b/app/.github/workflows/android-apk-build.yml new file mode 100644 index 000000000..e98fd24f0 --- /dev/null +++ b/app/.github/workflows/android-apk-build.yml @@ -0,0 +1,36 @@ +name: Build APK from Specific Branch + +on: + push: + branches: + - your-branch-name # change this to your branch + workflow_dispatch: # enables manual trigger from GitHub UI + +jobs: + build: + name: Build Debug APK + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + ref: feature/test # Checkout specific branch + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: 17 + + - name: Make Gradle executable + run: chmod +x ./gradlew + + - name: Build APK + run: ./gradlew assembleDebug + + - name: Upload APK artifact + uses: actions/upload-artifact@v4 + with: + name: debug-apk + path: app/build/outputs/apk/debug/app-debug.apk \ No newline at end of file