Spaces:
Sleeping
Sleeping
| name: Build Android APK | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| pip install flet | |
| pip install -r android_build_package/requirements.txt | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| - name: Build APK | |
| run: | | |
| yes | flet build apk android_build_package --project "MediAgent" --org "com.mediagent" --no-rich-output --yes | |
| - name: List files for debugging | |
| run: | | |
| find . -name "*.apk" | |
| ls -R | |
| - name: Upload APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mediagent-android-app | |
| path: "**/*.apk" | |