Compare commits

...

3 Commits

2 changed files with 12 additions and 4 deletions

View File

@@ -11,12 +11,20 @@ private String getCurrentVersionChangelog(String version) {
return changelogDataOS.toString().trim()
}
if (new File(projectDir, "secret.gradle").exists()) {
apply from: './secret.gradle'
def githubTokenVariableName = "GITHUB_RELEASE_TOKEN"
def githubTokenVariableFromEnv = System.getenv(githubTokenVariableName)
def secretFile = new File(projectDir, "secret.gradle")
if (secretFile.exists() || project.hasProperty(githubTokenVariableName) || (githubTokenVariableFromEnv != "" && githubTokenVariableFromEnv != null)) {
if (secretFile.exists()) {
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
owner = "InsanusMokrassar"
repo = "${rootProject.name}"

View File

@@ -10,7 +10,7 @@ android.enableJetifier=false
kotlin_version=2.1.10
kotlin_coroutines_version=1.10.1
kotlin_coroutines_version=1.10.2
kotlin_serialization_version=1.8.0
dokka_version=2.0.0