mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-26 12:08:45 +00:00
28 lines
757 B
Groovy
28 lines
757 B
Groovy
private String getCurrentVersionChangelog() {
|
|
OutputStream changelogDataOS = new ByteArrayOutputStream()
|
|
exec {
|
|
standardOutput = changelogDataOS
|
|
commandLine './changelog_info_retriever', "$library_version", 'CHANGELOG.md'
|
|
}
|
|
|
|
return changelogDataOS.toString().trim()
|
|
}
|
|
|
|
if (new File(projectDir, "secret.gradle").exists()) {
|
|
apply from: './secret.gradle'
|
|
apply plugin: "com.github.breadmoirai.github-release"
|
|
|
|
githubRelease {
|
|
token "${project.property('GITHUB_RELEASE_TOKEN')}"
|
|
|
|
owner "InsanusMokrassar"
|
|
repo "MicroUtils"
|
|
|
|
tagName "$library_version"
|
|
releaseName "$library_version"
|
|
targetCommitish "$library_version"
|
|
|
|
body getCurrentVersionChangelog()
|
|
}
|
|
}
|