1
0
mirror of https://github.com/GitJournal/GitJournal.git synced 2025-07-26 12:46:43 +08:00

CI: Build the apk and store it as an artifact

This way we can publish the apks in other places
This commit is contained in:
Vishesh Handa
2021-05-08 18:18:38 +02:00
parent be0edd018e
commit 047c945622
2 changed files with 6 additions and 0 deletions
.circleci
scripts

@ -34,6 +34,9 @@ jobs:
- store_artifacts:
path: build/app/outputs/bundle/prodRelease/app.aab
destination: gitjournal.aab
- store_artifacts:
path: build/app/outputs/flutter-apk/app-prod-release.apk
destination: gitjournal.apk
- run:
name: Generate Test Coverage
command: ./scripts/test_coverage.sh

@ -6,3 +6,6 @@ BUILD_NUM=$(git rev-list --count HEAD)
echo "Build Number: $BUILD_NUM"
flutter build appbundle --flavor prod --build-number="$BUILD_NUM" --verbose
# Also building the apk, as it's useful for non Google Play users
flutter build apk --flavor prod --build-number="$BUILD_NUM" --verbose