diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e59f53f..edea7b3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,6 +3,13 @@ name: CI on: push: branches: [ master ] + paths: + - 'lib/**.dart' + - 'test/**.dart' + - 'android/**' + - 'tool/**' + - 'pubspec.yaml' + - 'pubspec.lock' pull_request: branches: [ master ] workflow_dispatch: @@ -15,7 +22,7 @@ on: jobs: analyze: - name: Analyze & Build + name: Analyze & Test runs-on: flutter-android steps: - uses: actions/checkout@v4 @@ -31,6 +38,16 @@ jobs: - name: Analyze run: flutter analyze + release-apk: + name: Release APK + runs-on: flutter-android + needs: [analyze] + steps: + - uses: actions/checkout@v4 + + - name: Get dependencies + run: flutter pub get + - name: Build release APK run: flutter build apk --release