Skip to content

java version fix

java version fix #2

Workflow file for this run

name: "Build Android app"
on:
push:
branches:
- feat/cd-workflow
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Java
uses: actions/setup-java@v3
with:
java-version: 21
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: '21'
cache: 'yarn'
- name: Run Yarn Install
run: |
npm i -g corepack
yarn 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