From 7625073f83769ed1aaa174d899ef24118bf82cc8 Mon Sep 17 00:00:00 2001 From: Miha Drofenik Date: Mon, 25 Dec 2023 16:44:59 +0100 Subject: [PATCH] fixing pipelines --- .github/workflows/build.yml | 11 ++++------- fastlane/Fastfile | 5 ++--- fastlane/README.md | 8 ++++++++ 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4696f1e..ef149fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,9 @@ jobs: with: ref: initial - name: Copy service credentials file - run: echo -n "$FIREBASE_IAM_GOOGLE_SERVICES_JSON" | base64 --decode > service-credentials.json + run: echo -n "$FIREBASE_IAM_GOOGLE_SERVICES_JSON" | base64 --decode > ./fastlane/wildlife-watcher-service-account.json + - name: Copy google services file + run: echo -e "$ANDROID_GOOGLE_SERVICES_JSON" > android/app/google-services.json - name: Install npm dependency run: npm install # - name: Setup Android SDK @@ -39,11 +41,6 @@ jobs: run: | cd android ./gradlew build - - name: Build Android JS Bundle - run: | - npm run package-android - - name: Delete Android build duplicate assets resource - run: npm run delete-pics - name: Install bundler run: | cd android @@ -55,4 +52,4 @@ jobs: - name: Run fastlane run: | cd android - bundle exec fastlane build_qa + bundle exec fastlane android build_debug diff --git a/fastlane/Fastfile b/fastlane/Fastfile index e4ead20..7f9c7a6 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -47,13 +47,12 @@ platform :android do ) end -platform :android do - desc "Build a debug version of the app" + desc "Build a release version of the app" lane :build_release do gradle( project_dir: "./android", task: "bundle", - build_type: "Debug" + build_type: "Release" ) firebase_app_distribution( diff --git a/fastlane/README.md b/fastlane/README.md index c91610f..bffa583 100644 --- a/fastlane/README.md +++ b/fastlane/README.md @@ -36,6 +36,14 @@ Build a debug version of the app Build a debug version of the app +### android build_release + +```sh +[bundle exec] fastlane android build_release +``` + +Build a release version of the app + ---- This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.