Update README.md #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build Android app" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Java | |
uses: actions/setup-java@v2 | |
with: | |
java-version: "17" | |
distribution: "adopt" | |
cache: "gradle" | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Run Npm Install | |
run: | | |
npm install | |
- name: Build application | |
run: | | |
cd ./android | |
./gradlew assembleRelease | |
- name: Upload application | |
uses: actions/upload-artifact@v2 | |
with: | |
name: app | |
path: ./android/app/build/outputs/apk/release/app-release.apk | |
retention-days: 3 |