mirror of
https://github.com/xpipe-io/xpipe.git
synced 2025-04-19 02:33:39 +00:00
[stage]
This commit is contained in:
parent
04f54a1983
commit
d4e143397a
1 changed files with 6 additions and 2 deletions
8
dist/build.gradle
vendored
8
dist/build.gradle
vendored
|
@ -36,7 +36,9 @@ task createGithubChangelog(type: DefaultTask) {
|
|||
def template = file("$projectDir/misc/github.md").text
|
||||
def argument = incrementalChangelogFile.exists() ? incrementalChangelogFile.text : changelogFile.text
|
||||
def text = template.formatted(argument)
|
||||
def target = file(layout.buildDirectory.dir("dist/release/github-changelog.md"))
|
||||
def dir = layout.buildDirectory.dir("dist/release").get()
|
||||
mkdir(dir)
|
||||
def target = dir.file("github-changelog.md").asFile
|
||||
target.text = text
|
||||
}
|
||||
}
|
||||
|
@ -46,7 +48,9 @@ task createDiscordChangelog(type: DefaultTask) {
|
|||
def template = file("$projectDir/misc/discord.md").text
|
||||
def argument = incrementalChangelogFile.exists() ? incrementalChangelogFile.text : changelogFile.text
|
||||
def text = template.formatted(productName, version, argument, kebapProductName)
|
||||
def target = file(layout.buildDirectory.dir("dist/release/discord-changelog.md"))
|
||||
def dir = layout.buildDirectory.dir("dist/release").get()
|
||||
mkdir(dir)
|
||||
def target = dir.file("discord-changelog.md").asFile
|
||||
target.text = text
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue