From 85ef08cd0ee1d1907d7cb3896ea74477280d3e27 Mon Sep 17 00:00:00 2001 From: jahruz67 Date: Thu, 21 May 2026 16:06:05 -0700 Subject: [PATCH] Revise Android CI workflow for APK build and release Updated Android CI workflow to build debug APK and create a GitHub release. --- .github/workflows/android.yml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/android.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 0000000..97343f6 --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,38 @@ +name: Build Android APK + +on: + push: + branches: + - main + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Java 17 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + + - name: Set up Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Build debug APK + run: ./gradlew assembleDebug + + - name: Create GitHub release + uses: softprops/action-gh-release@v2 + with: + tag_name: build-${{ github.run_number }} + name: Build ${{ github.run_number }} + files: app/build/outputs/apk/debug/app-debug.apk + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}