Skip to content

Commit

Permalink
Update flutter-build-apk.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Shashwat12-egov authored Dec 20, 2024
1 parent 6f7ff66 commit 6ef26f5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/flutter-build-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,22 @@ jobs:
- name: Run APK build script
env:
BUILD_CONFIG: release # or profile depending on your choice
run: bash ./tools/generate-apk.sh
run: |
echo "Current working directory: $(pwd)"
bash ./tools/generate-apk.sh
# Step 8: Verify APK path and upload artifacts
- name: Check APK existence
run: |
echo "Looking for APK file"
if [ -f apps/health_campaign_field_worker_app/build/app/outputs/flutter-apk/app-release.apk ]; then
echo "APK found."
else
echo "APK not found in the expected path."
find . -name "app-release.apk"
exit 1
fi
# Archive the APK as a build artifact so it can be downloaded
- name: Upload APKs
Expand Down

0 comments on commit 6ef26f5

Please sign in to comment.