mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2025-10-20 14:10:11 +00:00
Update github_release.gradle
This commit is contained in:
@@ -13,14 +13,15 @@ private String getCurrentVersionChangelog() {
|
|||||||
|
|
||||||
|
|
||||||
def githubTokenVariableName = "GITHUB_RELEASE_TOKEN"
|
def githubTokenVariableName = "GITHUB_RELEASE_TOKEN"
|
||||||
|
def githubTokenVariableFromEnv = System.getenv(githubTokenVariableName)
|
||||||
|
|
||||||
def secretFile = new File(projectDir, "secret.gradle")
|
def secretFile = new File(projectDir, "secret.gradle")
|
||||||
if (secretFile.exists() || project.hasProperty(githubTokenVariableName) || System.getenv(githubTokenVariableName) != "") {
|
if (secretFile.exists() || project.hasProperty(githubTokenVariableName) || (githubTokenVariableFromEnv != "" && githubTokenVariableFromEnv != null)) {
|
||||||
if (secretFile.exists()) {
|
if (secretFile.exists()) {
|
||||||
apply from: './secret.gradle'
|
apply from: './secret.gradle'
|
||||||
}
|
}
|
||||||
apply plugin: "com.github.breadmoirai.github-release"
|
apply plugin: "com.github.breadmoirai.github-release"
|
||||||
def githubReleaseToken = project.hasProperty(githubTokenVariableName) ? project.property(githubTokenVariableName).toString() : System.getenv(githubTokenVariableName)
|
def githubReleaseToken = project.hasProperty(githubTokenVariableName) ? project.property(githubTokenVariableName).toString() : githubTokenVariableFromEnv
|
||||||
|
|
||||||
githubRelease {
|
githubRelease {
|
||||||
token githubReleaseToken
|
token githubReleaseToken
|
||||||
|
Reference in New Issue
Block a user