Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Chore] CD Workflow #211

Merged
merged 6 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading