diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2e3073d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: Build APK + +on: + workflow_dispatch: + +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: + distribution: 'zulu' + java-version: '17' + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build Debug APK + run: ./gradlew assembleDebug --stacktrace + + - name: Upload APK + uses: actions/upload-artifact@v4 + with: + name: SubPilot-Debug-APK + path: app/build/outputs/apk/debug/*.apk +