From a6f1af6fcac716741639bda89725fff0ff562001 Mon Sep 17 00:00:00 2001 From: Yusuf Rawat Date: Sun, 10 Mar 2024 23:20:15 -0500 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 85d7d2f..a8bf2ce 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - name: generate files from secret run: | - echo '{"SENTRY_DSN":"$SENTRY_DSN","DANBOORU_URL":"$DANBOORU_URL","STAGE":"$STAGE"}' >> env.json + jq -n --arg SENTRY_DSN "$SENTRY_DSN" --arg DANBOORU_URL "$DANBOORU_URL" --arg STAGE "$STAGE" '{"SENTRY_DSN":$SENTRY_DSN,"DANBOORU_URL":$DANBOORU_URL,"STAGE":$STAGE}' > env.json cd android echo "$PLAY_STORE_UPLOAD_KEY" | base64 --decode > app/keystore.jks echo "storeFile=keystore.jks" >> key.properties @@ -33,8 +33,7 @@ jobs: flutter-version: "3.19.3" cache: true - run: flutter pub get - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 + - run: flutter build appbundle --dart-define-from-file=env.json - name: Convert aab to apk id: convert_aab uses: mukeshsolanki/bundletool-action@v1.0.0