2020-10-08 09:15:11 +00:00
|
|
|
private String getCurrentVersionChangelog() {
|
|
|
|
OutputStream changelogDataOS = new ByteArrayOutputStream()
|
|
|
|
exec {
|
|
|
|
standardOutput = changelogDataOS
|
2020-10-08 11:07:37 +00:00
|
|
|
commandLine 'chmod', "+x", './changelog_parser.sh'
|
|
|
|
commandLine './changelog_parser.sh', "$library_version", 'CHANGELOG.md'
|
2020-10-08 09:15:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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 "${rootProject.name}"
|
|
|
|
|
2020-10-08 10:54:11 +00:00
|
|
|
tagName "${project.version}"
|
|
|
|
releaseName "${project.version}"
|
|
|
|
targetCommitish "${project.version}"
|
2020-10-08 09:15:11 +00:00
|
|
|
|
|
|
|
body getCurrentVersionChangelog()
|
|
|
|
}
|
|
|
|
}
|