Skip to content

Commit

Permalink
chore: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy-Bigler committed Oct 13, 2024
1 parent d5fe127 commit d3cd702
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ env:
# The name of the Play Store
playstore_name: Clavertus

ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
KEYSTORE_BASE_64: ${{ secrets.KEYSTORE_BASE_64 }}

on:

push:
Expand Down Expand Up @@ -57,7 +61,6 @@ jobs:
run: |
./gradlew -Pci --console=plain :app:detektMain :app:detektTest
# ToDo: Not yet working
build:

runs-on: ubuntu-latest
Expand All @@ -83,6 +86,11 @@ jobs:
- name: Change wrapper permissions
run: chmod +x ./gradlew

- name: Decode Keystore
run: |
echo $KEYSTORE_BASE_64 > keystore-b64.txt
base64 -d keystore-b64.txt > keystore.jks
# Run Tests Build
- name: Run gradle tests
run: ./gradlew test
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ android {

signingConfigs {
create("release") {
storeFile = file(System.getenv("ANDROID_KEY_STOREFILE") ?: "keystore.jks")
storeFile = file("../keystore.jks")
storePassword = System.getenv("ANDROID_KEYSTORE_PASSWORD")
keyAlias = System.getenv("ANDROID_KEY_ALIAS")
keyPassword = System.getenv("ANDROID_KEYSTORE_PASSWORD")
Expand Down

0 comments on commit d3cd702

Please sign in to comment.