Skip to content

Android Studio Koala #25

Android Studio Koala

Android Studio Koala #25

Workflow file for this run

name: Android CI
on:
push:
branches: [ "master" ]
paths:
- 'app-version.gradle'
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 18
uses: actions/setup-java@v3
with:
java-version: '18'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: ktLint
run: ./gradlew ktlintCheck
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.0.0
with:
name: app
path: app/build/outputs/apk/debug/*.apk
# - name: Firebase App Distribution Action
# # You may pin to the exact commit or the version.
# # uses: hasretsariyer/firebase-app-distribution-github-action@1efdc61b2aecd54be4072edb5dd527be26571943
# uses: hasretsariyer/firebase-app-distribution-github-action@v1.0
# with:
# # Firebase App ID. You can find it in the Firebase console, on the General Settings page.
# app_id: 1:676533197787:android:0cb27c472edeccebd3e5fe
# # Path of IPA or APK file to distribution.
# app_file: app/build/outputs/apk/debug/app-debug.apk
# # 'Firebase access token. You can create it by `firebase login:ci` on your local machine.
# # Visit [cli-ci-systems](https://firebase.google.com/docs/cli#cli-ci-systems) for more detail'
# firebase_token: "1//0gpQKDtLHF-wjCgYIARAAGBASNwF-L9IrNV6OgT1odeWo1m7KXf4jCodNPoamcWLgqFEW2o4CS6WPmaFRG2ZkVNC0vHaXZQ9mCkA"
# # Distribution groups
# tester_groups: androidTesters
# # Release notes for this build.
# release_notes: ${{ github.event.head_commit.message }}