Skip to content

Commit

Permalink
Update github actions release script
Browse files Browse the repository at this point in the history
  • Loading branch information
kamgurgul committed Nov 28, 2023
1 parent 01f0829 commit 901293d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ jobs:
with:
name: code-coverage.xml
path: app/build/coverage-report/result.xml
- name: Decode Keystore
env:
ENCODED_KEYSTORE: ${{ secrets.KEYSTORE_ENCODED }}
SIGNING_KEYSTORE_PATH: ${{ secrets.KEYSTORE_PATH }}
run: |
echo ENCODED_KEYSTORE > keystore-b64.txt
base64 -d keystore-b64.txt > SIGNING_KEYSTORE_PATH
- name: Build release
run: ./gradlew assembleRelease bundleRelease
- name: Upload Build
Expand Down
6 changes: 3 additions & 3 deletions buildSrc/src/main/java/SigningConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import java.util.*

object SigningConfig {

const val KEY_PATH = "keyPath"
const val KEY_PASS = "keyPass"
const val KEY_ALIAS = "keyAlias"
const val KEY_PATH = "KEYSTORE_PATH"
const val KEY_PASS = "KEYSTORE_PASS"
const val KEY_ALIAS = "KEYSTORE_ALIAS"

fun getDebugProperties(rootDir: File) = Properties().apply {
setProperty(KEY_PATH, "${rootDir.path}/debug.keystore")
Expand Down

0 comments on commit 901293d

Please sign in to comment.