Skip to content

chore: 2nd gpt4o update android.yml #3

chore: 2nd gpt4o update android.yml

chore: 2nd gpt4o update android.yml #3

Workflow file for this run

name: Android CI
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6 # Specify a suitable version based on your project's requirements
- name: Generate Gradle wrapper
run: gradle wrapper
- name: Cache Gradle dependencies
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for Gradle wrapper
run: chmod +x ./gradlew
- name: Build Release APK
run: ./gradlew assembleRelease
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: app-release.apk
path: app/build/outputs/apk/release/app-release.apk