From 9070ce245a26f234315af6bd280f4a630e97fe60 Mon Sep 17 00:00:00 2001 From: HIMANSHU Date: Thu, 18 Apr 2024 08:47:45 +0530 Subject: [PATCH] android fix --- .github/workflows/android-build.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/android-build.yml b/.github/workflows/android-build.yml index 689594c..dfda8fe 100644 --- a/.github/workflows/android-build.yml +++ b/.github/workflows/android-build.yml @@ -16,13 +16,13 @@ jobs: - name: Set up JDK uses: actions/setup-java@v2 with: - java-version: "18" # Choose appropriate JDK version + java-version: "18" distribution: "adopt" - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: '21' # Choose appropriate Node.js version + node-version: '21' - name: Install dependencies run: | @@ -40,16 +40,25 @@ jobs: name: app-release path: ./android/app/build/outputs/apk/release/app-release.apk - # Optionally, create a GitHub release - name: Create GitHub Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: v1.0.0 # Specify your release tag - release_name: Release v1.0.0 # Specify your release name + tag_name: v1.0.0 + release_name: Release v1.0.0 body: | Test Release draft: false prerelease: false + + - name: Upload APK to GitHub Release + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./android/app/build/outputs/apk/release/app-release.apk + asset_name: react-native-template.apk + asset_content_type: application/vnd.android.package-archive