diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea341b14b..ee979298a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,9 @@ on: tags: - v* +env: + MIHON_GITHUB_RELEASE: true + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 818a7f825..a92c0af93 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -43,7 +43,7 @@ android { testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } - if (System.getenv("GITHUB_ACTIONS").toBoolean() && System.getenv("GITHUB_REPOSITORY_OWNER") == "mihonapp") { + if (System.getenv("MIHON_GITHUB_RELEASE").toBoolean()) { val tempStoreFile = file(System.getenv("RUNNER_TEMP")).resolve("antsy.keystore") val storeFileBytes = System.getenv("storeFileBase64").let(Base64::decode)