diff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.yml new file mode 100644 index 0000000..18f6a8f --- /dev/null +++ b/.github/workflows/flutter-build.yml @@ -0,0 +1,30 @@ +name: Build Flutter APK + +on: + push: + branches: [ main ] + workflow_dispatch: + +jobs: + build: + name: Build APK + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - uses: subosito/flutter-action@v2 + with: + flutter-version: '3.19.6' + + - name: Install dependencies + run: flutter pub get + + - name: Build APK + run: flutter build apk --release + + - name: Upload APK to artifacts + uses: actions/upload-artifact@v3 + with: + name: release-apk + path: build/app/outputs/flutter-apk/app-release.apk