Skip to content

Commit

Permalink
Merge pull request #211 from mash-up-kr/chore/cd_workflow
Browse files Browse the repository at this point in the history
[Chore] CD Workflow
  • Loading branch information
EvergreenTree97 authored Aug 12, 2024
2 parents dc07be0 + f2d6d9b commit 24089e3
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 26 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/firebase_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,32 @@ jobs:
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
distribution: zulu
java-version: 17

- name: Create Local Properties
run: |
echo "${{ secrets.PPAC_LOCAL_PROPERTIES }}" > ./local.properties
- name: Create file
run: cat /home/runner/work/ppac-android/ppac-android/app/google-services.json | base64

- name: Putting data
env:
DATA: ${{ secrets.PPAC_GOOGLE_SERVICES }}
run: echo $DATA > /home/runner/work/ppac-android/ppac-android/app/google-services.json

- name: Create KeyStore Properties
run: |
echo "${{ secrets.PPAC_KEYSTORE_PROPERTIES }}" > ./farmeme-keystore.properties
- name: Build APK
run: ./gradlew assembleDebug

- name: Upload Build to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{ secrets.PPAC_FIREBASE_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.PPAC_FIREBASE_CREDENTIAL }}
groups: android-tester
file: app/build/outputs/apk/debug/app-debug.apk
# app/build/outputs/apk/standard/stage/release/app-standard-stage-release.apk
appId: ${{ secrets.PPAC_FIREBASE_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.PPAC_FIREBASE_CREDENTIAL }}
groups: android-tester
file: app/build/outputs/apk/debug/app-debug.apk
5 changes: 3 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
alias(libs.plugins.google.services)
}

val keystorePropertiesFile = rootProject.file("app/signing/farmeme-keystore.properties")
val keystorePropertiesFile = File("farmeme-keystore.properties")
android {
namespace = libs.versions.namespace.get()
compileSdk = libs.versions.compileSdk.get().toInt()
Expand All @@ -33,7 +33,7 @@ android {
create("release") {
val keystoreProperties = Properties()
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
storeFile = file("signing/farmeme-keystore.jks")
storeFile = file("farmeme-keystore.jks")
keyAlias = keystoreProperties.getProperty("keyAlias")
keyPassword = keystoreProperties.getProperty("keyPassword")
storePassword = keystoreProperties.getProperty("storePassword")
Expand All @@ -47,6 +47,7 @@ android {
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
signingConfig = signingConfigs.getByName("release")
}
}
compileOptions {
Expand Down

This file was deleted.

0 comments on commit 24089e3

Please sign in to comment.