Skip to content

Commit

Permalink
fixing pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Miha Drofenik committed Dec 25, 2023
1 parent adde5f2 commit 7625073
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -55,4 +52,4 @@ jobs:
- name: Run fastlane
run: |
cd android
bundle exec fastlane build_qa
bundle exec fastlane android build_debug
5 changes: 2 additions & 3 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
8 changes: 8 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7625073

Please sign in to comment.