From ffbd0f35d311ad64fcf1faecb7c429e78984b161 Mon Sep 17 00:00:00 2001 From: BhumikaDatamatics <82521727+BhumikaDatamatics@users.noreply.github.com> Date: Fri, 29 Mar 2024 13:57:14 +0530 Subject: [PATCH] Update android.yml --- .github/workflows/android.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 74449275f..465e74215 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -7,9 +7,9 @@ on: # branches: # - main - pull_request: + push: branches: - - main + - improveSearchResults # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -22,26 +22,27 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v1 - uses: actions/setup-node@master with: - node-version: '16.14.0' + node-version: '21.2.0' # node-version: '14.16.0' # - uses: c-hive/gha-yarn-cache@v1 - name: Cache (NDK) - uses: actions/cache@v2 + uses: actions/cache@v1 with: path: ${ANDROID_HOME}/ndk/21.0.6113669 key: ndk-cache - - name: Install NDK - run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install 'ndk;21.0.6113669' + #- name: Install NDK + # run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install 'ndk;21.0.6113669' - name: Install node modules run: | - npm install --legacy-deps=true + npm install + # --legacy-deps=true - name: Lint uses: Krizzu/eslint-check-action@v1.1.0 @@ -103,8 +104,12 @@ jobs: run: cd android && chmod +x ./gradlew - name: build prod - run: cd android && ./gradlew clean && ./gradlew assembleprodstagingRelease --no-daemon + run: cd android && ./gradlew clean && ./gradlew assembleprodstagingRelease --no-daemon && ./gradlew wrapper && --gradle-version 8.0.1 --warning-mode all + #run: cd android && ./gradlew clean && ./gradlew wrapper && --gradle-version 8.0.1 && ./gradlew assembleprodstagingRelease --no-daemon + # run: cd android && ./gradlew clean && ./gradlew assembleprodstagingRelease --no-daemon + + - name: Upload Artifact uses: actions/upload-artifact@v1 with: