Skip to content

chore : testing ci/cd #3

chore : testing ci/cd

chore : testing ci/cd #3

Workflow file for this run

name: Android CI
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up Android SDK
uses: android-actions/setup-android@v2
with:
api-level: 34
build-tools: 34.0.0
- name: Build with Gradle
run: ./gradlew assembleRelease
- name: Upload APK to GitHub Actions
uses: actions/upload-artifact@v3
with:
name: app-release-apk
path: app/build/outputs/apk/release/app-release.apk