ci: split into fast analyze + slow release build with path gating
analyze runs on every push/PR (fast check). release-apk only fires on push to master or workflow_dispatch (slow build). Doc-only pushes no longer trigger any CI run. workflow_dispatch triggers both jobs unconditionally.
This commit is contained in:
@@ -7,9 +7,9 @@ on:
|
|||||||
- 'lib/**.dart'
|
- 'lib/**.dart'
|
||||||
- 'test/**.dart'
|
- 'test/**.dart'
|
||||||
- 'android/**'
|
- 'android/**'
|
||||||
- 'tool/**'
|
|
||||||
- 'pubspec.yaml'
|
- 'pubspec.yaml'
|
||||||
- 'pubspec.lock'
|
- 'pubspec.lock'
|
||||||
|
- 'images/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -42,6 +42,7 @@ jobs:
|
|||||||
name: Release APK
|
name: Release APK
|
||||||
runs-on: flutter-android
|
runs-on: flutter-android
|
||||||
needs: [analyze]
|
needs: [analyze]
|
||||||
|
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user