Update github_release.gradle

This commit is contained in:
InsanusMokrassar 2020-10-16 21:36:01 +06:00 committed by GitHub
parent 90c1731bd1
commit 45a9a95888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,11 @@
private String getCurrentVersionChangelog() { private String getCurrentVersionChangelog() {
OutputStream changelogDataOS = new ByteArrayOutputStream() OutputStream changelogDataOS = new ByteArrayOutputStream()
exec {
commandLine 'chmod', "+x", './changelog_parser.sh'
}
exec { exec {
standardOutput = changelogDataOS standardOutput = changelogDataOS
commandLine './changelog_info_retriever', "$library_version", 'CHANGELOG.md' commandLine './changelog_parser.sh', "${project.version}", 'CHANGELOG.md'
} }
return changelogDataOS.toString().trim() return changelogDataOS.toString().trim()
@ -15,12 +18,12 @@ if (new File(projectDir, "secret.gradle").exists()) {
githubRelease { githubRelease {
token "${project.property('GITHUB_RELEASE_TOKEN')}" token "${project.property('GITHUB_RELEASE_TOKEN')}"
owner "InsanusMokrassar" owner "HERE MUST BE PROJECT OWNER NAME"
repo "MicroUtils" repo "${rootProject.name}"
tagName "$library_version" tagName "${project.version}"
releaseName "$library_version" releaseName "${project.version}"
targetCommitish "$library_version" targetCommitish "${project.version}"
body getCurrentVersionChangelog() body getCurrentVersionChangelog()
} }