1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-12 11:10:29 +00:00

Fix a couple of problems in the release buildscript

Otherwise that went pretty smoothly!
This commit is contained in:
SquidDev 2019-05-31 13:56:48 +01:00
parent 43050426de
commit ce1f14a010

View File

@ -336,12 +336,12 @@ githubRelease {
token project.hasProperty('githubApiKey') ? project.githubApiKey : '' token project.hasProperty('githubApiKey') ? project.githubApiKey : ''
owner 'SquidDev-CC' owner 'SquidDev-CC'
repo 'CC-Tweaked' repo 'CC-Tweaked'
targetCommitish { Grgit.open(dir: '.').branch.current() } targetCommitish { Grgit.open(dir: '.').branch.current().fullName }
tagName "v${mc_version}-${mod_version}" tagName "v${mc_version}-${mod_version}"
releaseName "[${mc_version}] ${mod_version}" releaseName "[${mc_version}] ${mod_version}"
body { body {
"##" + new File("src/main/resources/assets/computercraft/lua/rom/help/whatsnew.txt") "## " + new File("src/main/resources/assets/computercraft/lua/rom/help/whatsnew.txt")
.readLines() .readLines()
.takeWhile { it != 'Type "help changelog" to see the full version history.' } .takeWhile { it != 'Type "help changelog" to see the full version history.' }
.join("\n").trim() .join("\n").trim()