add automatic release type classification
This commit is contained in:
parent
28f9d16c33
commit
a58049845d
|
@ -137,7 +137,14 @@ artifacts {
|
|||
curse {
|
||||
projectId = '235442'
|
||||
apiKey = project.hasProperty('curseForgeApiKey') ? project.curseForgeApiKey : ''
|
||||
releaseType = 'beta'
|
||||
def branch = System.getEnv('GIT_BRANCH')
|
||||
if(branch == null) {
|
||||
releaseType = 'alpha'
|
||||
} else if(branch.equals("experimental")) {
|
||||
releaseType = 'beta'
|
||||
} else if(branch.equals("master")) {
|
||||
releaseType = 'release'
|
||||
}
|
||||
|
||||
changelog = getGitChangelog()
|
||||
|
||||
|
|
Loading…
Reference in a new issue