From f0fe2226c7e2937488ae5c2e66a939ed3151a512 Mon Sep 17 00:00:00 2001 From: KKGG3030 <139445123+KKGG3030@users.noreply.github.com> Date: Thu, 3 Apr 2025 20:24:52 +0800 Subject: [PATCH] Create android-build.yml --- .github/workflows/android-build.yml | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/android-build.yml diff --git a/.github/workflows/android-build.yml b/.github/workflows/android-build.yml new file mode 100644 index 0000000000..8a0a90d41b --- /dev/null +++ b/.github/workflows/android-build.yml @@ -0,0 +1,35 @@ +name: Android Build + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + + - name: Grant execute permission for Gradle + run: chmod +x gradlew + + - name: Build APK + run: ./gradlew assembleRelease + + - name: Upload APK + uses: actions/upload-artifact@v3 + with: + name: app-release + path: app/build/outputs/apk/release/app-release.apk