From 2868ea2a7c8fc63de55da3044a8a2ddb4e82b593 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Thu, 6 Mar 2025 12:04:51 +0100 Subject: [PATCH] Added the workflow for building the APK --- .github/workflows/android-build.yml | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 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 0000000..6ef6b15 --- /dev/null +++ b/.github/workflows/android-build.yml @@ -0,0 +1,39 @@ +name: Android Build + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies + run: npm install + + - name: Set up JDK + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '11' + + - name: Build APK + run: cd android && ./gradelew assembleRelease + + - name: Upload APK + uses: actions/upload-artifact@v2 + with: + name: app-release.apk + path: android/app/build/outputs/apk/release/app-release-unsigned.apk + +