Skip to content

Commit

Permalink
android fix
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu-wedensday committed Apr 18, 2024
1 parent 6ab2cff commit 9070ce2
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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

0 comments on commit 9070ce2

Please sign in to comment.