Account for missing changelog for curse
This commit is contained in:
parent
35aeb8afdb
commit
48a05fb3fe
2 changed files with 11 additions and 5 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -36,7 +36,7 @@ pipeline {
|
|||
}
|
||||
}
|
||||
steps {
|
||||
writeChangelog(currentBuild, 'build/BiomesOPlenty-${MYVERSION}-changelog.txt')
|
||||
writeChangelog(currentBuild, 'build/BiomesOPlenty-${env.MYVERSION}-changelog.txt')
|
||||
}
|
||||
}
|
||||
stage('publish') {
|
||||
|
|
14
build.gradle
14
build.gradle
|
@ -84,22 +84,28 @@ task apiJar(type: Jar) {
|
|||
classifier = 'api'
|
||||
}
|
||||
|
||||
def changelog_file = rootProject.file('build/BiomesOPlenty-${version}-changelog.txt')
|
||||
|
||||
curseforge {
|
||||
if (project.hasProperty('curseApiKey')) {
|
||||
apiKey = project.getProperty('curseApiKey')
|
||||
project {
|
||||
id = '220318'
|
||||
changelog = file('build/changelog.txt')
|
||||
|
||||
if (changelog.exists()) {
|
||||
changelog = changelog_file
|
||||
}
|
||||
|
||||
releaseType = 'beta'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def changelog = rootProject.file('build/BiomesOPlenty-${version}-changelog.txt')
|
||||
|
||||
|
||||
artifacts {
|
||||
if (changelog.exists()) {
|
||||
archives changelog
|
||||
if (changelog_file.exists()) {
|
||||
archives changelog_file
|
||||
}
|
||||
archives sourcesJar
|
||||
archives deobfJar
|
||||
|
|
Loading…
Reference in a new issue