Skip to content

Commit

Permalink
Configured CI/CD pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
beradeep committed Dec 4, 2023
1 parent b055d4a commit 2b29fda
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 20 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Test
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build
env:
API_KEY_QUOTES: ${{ secrets.API_KEY_QUOTES }}
API_KEY_CUTOFF: ${{ secrets.API_KEY_CUTOFF }}

- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: CollegeSearch.apk
# A file, directory or wildcard pattern that describes what to upload
path: app/build/outputs/apk/debug/app-debug.apk
17 changes: 5 additions & 12 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ android {
Properties properties = new Properties()
properties.load(project.rootProject.file("local.properties").newDataInputStream())

buildConfigField "String", "API_KEY_QUOTES", "\"${properties.getProperty("API_KEY_QUOTES")}\""
buildConfigField "String", "API_KEY_CUTOFF", "\"${properties.getProperty("API_KEY_CUTOFF")}\""
buildConfigField "String", "API_KEY_QUOTES", "\"${properties.getProperty("API_KEY_QUOTES") ?: System.getenv("API_KEY_QUOTES")}\""
buildConfigField "String", "API_KEY_CUTOFF", "\"${properties.getProperty("API_KEY_CUTOFF") ?: System.getenv("API_KEY_CUTOFF")}\""
}

buildTypes {
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.1.4' apply false
id 'com.android.library' version '8.1.4' apply false
id 'com.android.application' version '8.2.0' apply false
id 'com.android.library' version '8.2.0' apply false
id 'org.jetbrains.kotlin.android' version '1.8.21' apply false
id 'com.google.dagger.hilt.android' version '2.44' apply false
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu May 25 18:34:36 IST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 2b29fda

Please sign in to comment.