Files
GitJournal/scripts/build.sh
Vishesh Handa 047c945622 CI: Build the apk and store it as an artifact
This way we can publish the apks in other places
2021-05-08 18:18:38 +02:00

12 lines
325 B
Bash
Executable File

#!/usr/bin/env bash
set -eux pipefail
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