Skip to content

Commit dc3d06b

Browse files
committed
ci: fix artifact path and build command
Signed-off-by: Harry Chen <i@harrychen.xyz>
1 parent 372fde4 commit dc3d06b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/example-app.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
variant: [debug, release]
14-
include:
15-
- variant: debug
16-
artifact-path: build/app/outputs/apk/app-debug.apk
17-
- variant: release
18-
artifact-path: build/app/outputs/flutter-apk/app-release.apk
1914

2015
steps:
2116
- uses: actions/checkout@v4
@@ -33,9 +28,10 @@ jobs:
3328
- run: flutter pub get
3429
working-directory: example/
3530
#- run: flutter test
36-
- run: flutter build apk --debug --verbose
31+
- run: flutter build apk --${{ matrix.variant }} --verbose
3732
working-directory: example/
3833
- uses: actions/upload-artifact@v4
3934
with:
4035
name: example-apk-${{ matrix.variant }}
41-
path: example/${{ matrix.artifact-path }}
36+
path: example/build/app/outputs/flutter-apk/app-${{ matrix.variant }}.apk
37+

0 commit comments

Comments
 (0)