Skip to content

Commit

Permalink
Setup github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhasDissa committed Jul 31, 2023
1 parent 9a0018e commit a9bd776
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 7 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Create Apk

on:
workflow_dispatch:
pull_request:
paths-ignore:
- "README*.md"
- "app/src/main/res/**"
- ".github/**"
push:
paths-ignore:
- "README*.md"
- "app/src/main/res/**"
- ".github/**"

jobs:
apk:
name: Generate APK
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
cache: "gradle"
- name: Build APK
run: bash ./gradlew assembleReleaseGithub --stacktrace
- name: Upload APK
uses: actions/upload-artifact@v1
with:
name: release
path: app/build/outputs/apk/releaseGithub/
13 changes: 6 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
isShrinkResources = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
"proguard-rules.pro",
)
}
getByName("debug") {
Expand All @@ -45,17 +45,16 @@ android {
signingConfig = signingConfigs.getByName("release")
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
"proguard-rules.pro",
)
}

}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
}
buildFeatures {
compose = true
Expand Down Expand Up @@ -90,4 +89,4 @@ dependencies {
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1")
implementation("androidx.navigation:navigation-compose:2.7.0-alpha01")
implementation("androidx.compose.material:material-icons-extended:1.4.3")
}
}
Binary file added key.jks
Binary file not shown.

0 comments on commit a9bd776

Please sign in to comment.