diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index 58a09d3098..61e93bc78a 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -50,9 +50,9 @@ jobs: - name: Setup keystore run: | - echo ${{ secrets.SIGNING_KEY }} | base64 --decode | cat >> signingkey.jks + echo ${{ secrets.SIGNING_KEY }} | base64 --decode | cat >> $(pwd)/signingkey.jks cat << EOF > keystore.properties - storeFile=signingkey.jks + storeFile=$(pwd)/signingkey.jks storePassword=${{ secrets.KEY_STORE_PASSWORD }} keyAlias=${{ secrets.ALIAS }} keyPassword=${{ secrets.KEY_PASSWORD }} diff --git a/build-logic/convention/src/main/kotlin/ApkRelease.kt b/build-logic/convention/src/main/kotlin/ApkRelease.kt index b9a3cc1b3a..bc53f748f9 100644 --- a/build-logic/convention/src/main/kotlin/ApkRelease.kt +++ b/build-logic/convention/src/main/kotlin/ApkRelease.kt @@ -5,11 +5,11 @@ import java.util.Properties object ApkRelease { private const val KEYSTORE_PROPERTIES = "keystore.properties" - private val props by lazy { - File(KEYSTORE_PROPERTIES).takeIf { it.exists() } - ?.let { Properties().apply { load(it.inputStream()) } } - ?: Properties() - } + private val Project.props: Properties + get() = + rootProject.file(KEYSTORE_PROPERTIES).takeIf { it.exists() } + ?.let { Properties().apply { load(it.inputStream()) } } + ?: Properties() val Project.storeFile get() = props["storeFile"] as? String