Skip to content

Commit

Permalink
ci: fix artifact path and build command
Browse files Browse the repository at this point in the history
Signed-off-by: Harry Chen <i@harrychen.xyz>
  • Loading branch information
Harry-Chen committed May 1, 2024
1 parent 372fde4 commit dc3d06b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/example-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ jobs:
fail-fast: false
matrix:
variant: [debug, release]
include:
- variant: debug
artifact-path: build/app/outputs/apk/app-debug.apk
- variant: release
artifact-path: build/app/outputs/flutter-apk/app-release.apk

steps:
- uses: actions/checkout@v4
Expand All @@ -33,9 +28,10 @@ jobs:
- run: flutter pub get
working-directory: example/
#- run: flutter test
- run: flutter build apk --debug --verbose
- run: flutter build apk --${{ matrix.variant }} --verbose
working-directory: example/
- uses: actions/upload-artifact@v4
with:
name: example-apk-${{ matrix.variant }}
path: example/${{ matrix.artifact-path }}
path: example/build/app/outputs/flutter-apk/app-${{ matrix.variant }}.apk

0 comments on commit dc3d06b

Please sign in to comment.