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 Nov 21, 2024
1 parent 9fd1c4e commit 0e30b80
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/flutter-build-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,25 @@ jobs:
echo "HIERARCHY_TYPE=${{ vars.HIERARCHY_TYPE }}" >> apps/health_campaign_field_worker_app/.env
echo "ENV_NAME=${{ vars.ENV_NAME }}" >> apps/health_campaign_field_worker_app/.env
- name: Run APK build script
env:
BUILD_CONFIG: release # or profile depending on your choice
run: bash ./tools/generate-apk.sh
- name: Verify .env file
run: |
ls -l apps/health_campaign_field_worker_app/.env
cat apps/health_campaign_field_worker_app/.env
# - name: Run APK build script
# env:
# BUILD_CONFIG: release # or profile depending on your choice
# run: bash ./tools/generate-apk.sh

# # Archive the APK as a build artifact so it can be downloaded
# - name: Upload APKs
# uses: actions/upload-artifact@v3
# with:
# name: app-release-apk
# path: apps/health_campaign_field_worker_app/build/app/outputs/flutter-apk/app-release.apk

# Archive the APK as a build artifact so it can be downloaded
- name: Upload APKs
- name: Upload .env as artifact
uses: actions/upload-artifact@v3
with:
name: app-release-apk
path: apps/health_campaign_field_worker_app/build/app/outputs/flutter-apk/app-release.apk
name: env-file
path: apps/health_campaign_field_worker_app/.env

0 comments on commit 0e30b80

Please sign in to comment.