add automatic release type classification

This commit is contained in:
MachineMuse 2015-08-28 08:06:39 -06:00
parent 28f9d16c33
commit a58049845d

View file

@ -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()