Skip to content

Commit 2d5bcc1

Browse files
committed
Update Travis deployment
1 parent 472bf79 commit 2d5bcc1

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ deploy:
1717
on:
1818
all_branches: true
1919
repo: CyclopsMC/StructuredCrafting
20-
condition: $TRAVIS_BRANCH =~ ^(master|release).*$
2120
tags: true
2221
- provider: releases
2322
api_key:
2423
secure: KYHDLGt9Udzjx6QS+orXNAVOj/Bo1qoWAK/cX7qUtzRWJ4ZASwfiRvnv80qaMQYLzFYE7qy4QPQ0j2BPUzxyyvYXwddoHbHlR8VPKCrBDeJV/AVaZzJfMx9bntNq9/X4DxF7o8kbLK6T9wkECNgZBi/cu57cvFkQWLbSNV5OQj/z7mURjZ7zlP7wI9tnQEwopvFWWlbh10VoVhN5uopMY+iVST7763EtZD3uG0LKLTrbJo4bM+DhxusfSVGrWMs586KM+xGLjOGiWgaoGxBV0T1f613dP9b3Ge38GJ6e0lgqgMQGHayTXrc0UhJ4TnNL8IhkM1No//bDOcQq8zb1f/FYspZuBiJqp7PbMyYSP81Zz+GHs0DPkcgrL2hSCFSVE2ACDU6lNwEO1WI66RlcYy1b2J3xZ7SJph//2hy0PKo2/R32GUfmbVxaSjGzmAy9xp+h6FYFlWxU9CXudV8vJTTwzaVpZQO3yoRyTjtb2DJAM9xoBeZjHSkK15CKky6minPrdgxWs3g+5lVNYFIJXPYX6G4dZdyRGqu7TV8L3tBm1AA9jM9LRRDhFQQu0lvnAj7eULZWM2WbLA/sEAwC9mgL1+BSpwSctMx1SagNIR+djH3CbxhxkyC1ST7nzIJ5H622+DJwx8pFgxF6aZ8Jl/e6OY/cXKUhhMUwKv6VOZQ=
2524
on:
2625
all_branches: true
2726
repo: CyclopsMC/StructuredCrafting
28-
condition: $TRAVIS_BRANCH =~ ^(master|release).*$
2927
tags: true
3028
- provider: script
3129
script: ./gradlew uploadArchives -S

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def loadProperties() {
4343
if (System.getenv().CI) {
4444
//project.buildnumber += "-DEV"
4545
}
46-
if (System.getenv().RELEASE || (System.getenv().TRAVIS_BRANCH && System.getenv().TRAVIS_BRANCH.indexOf("release") > -1))
46+
if (System.getenv().RELEASE || System.getenv().TRAVIS_TAG)
4747
project.buildnumber = "RELEASE"
4848
logger.lifecycle "BUILDING VERSION: " + project.buildnumber
4949
}

build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ mod_version=0.1.0
22
minecraft_version=1.8
33
forge_version=11.14.3.1487
44
cyclopscore_version=0.1.0-86
5-
release_type=alpha
5+
release_type=beta

gradle/deploy.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ curse {
55
dependsOn 'reobf'
66
projectId = "" // TODO: my project url is http://minecraft.curseforge.com/mc-mods/232758/
77
releaseType = project.config.release_type
8+
relatedProject 'cyclops-core': 'requiredLibrary'
89

9-
if (project.buildnumber.equals("RELEASE")) {
10+
changelog = ""
11+
if(new File("resources/changelog/${project.version}.txt").exists()) {
1012
changelog = new File("resources/changelog/${project.version}.txt").text
11-
} else {
12-
changelog = ""
1313
}
1414

1515
if(project.hasProperty("curseforge_key") && project.hasProperty("changelog")) {

0 commit comments

Comments
 (0)