diff --git a/github_release.gradle b/github_release.gradle index 81bd74a..c3e895a 100644 --- a/github_release.gradle +++ b/github_release.gradle @@ -20,9 +20,10 @@ if (secretFile.exists() || project.hasProperty(githubTokenVariableName) || (gith apply from: './secret.gradle' } apply plugin: "com.github.breadmoirai.github-release" + def githubReleaseToken = project.hasProperty(githubTokenVariableName) ? project.property(githubTokenVariableName).toString() : githubTokenVariableFromEnv githubRelease { - token "${project.property('GITHUB_RELEASE_TOKEN')}" + token githubReleaseToken releaseAssets.from('bot/build/distributions')