From b5df0ee77af14d70008d98b663c77fa8480342cd Mon Sep 17 00:00:00 2001 From: ayushya Date: Wed, 16 Sep 2026 14:39:07 -0400 Subject: [PATCH] Add Gitea Actions workflow to build a release APK on push to main Checks out, sets up JDK 17 + Flutter (stable) + Android SDK, runs flutter analyze, then builds and uploads a release APK artifact. Requires a registered Gitea Actions runner - see the setup notes given alongside this commit. Co-Authored-By: Claude Sonnet 5 --- .gitea/workflows/build.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..a1aff89 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,42 @@ +name: Build APK + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: "17" + + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + channel: stable + + - name: Set up Android SDK + uses: android-actions/setup-android@v3 + + - name: Install dependencies + run: flutter pub get + + - name: Analyze + run: flutter analyze + + - name: Build release APK + run: flutter build apk --release + + - name: Upload APK + uses: actions/upload-artifact@v4 + with: + name: app-release-apk + path: build/app/outputs/flutter-apk/app-release.apk