mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-26 03:58:45 +00:00
Update github_release.gradle
This commit is contained in:
parent
90c1731bd1
commit
45a9a95888
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user