Skip to content

Commit 2591476

Browse files
committed
Update dryRun config on bintray
1 parent b113380 commit 2591476

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.circleci/config.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,7 @@ jobs:
182182

183183
- deploy:
184184
name: Deploy bintray
185-
command: |
186-
if [ "${CIRCLE_BRANCH}" == "master" ]
187-
then
188-
./gradlew assemble bintrayUpload
189-
fi
185+
command: ./gradlew assemble bintrayUpload
190186
- save_cache:
191187
key: barista-{{ .Branch }}-{{ checksum ".circleci/config.yml" }}-{{ checksum "build.gradle" }}-{{ checksum "gradle.properties" }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
192188
paths:

gradle/bintray.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ if (System.env.BINTRAY_USER && System.env.BINTRAY_KEY) {
55
user = System.env.BINTRAY_USER
66
key = System.env.BINTRAY_KEY
77
publications = ["mavenJava"]
8+
dryRun = System.env.CIRCLE_BRANCH != "master"
9+
publish = true
810
pkg {
911
repo = "spar-wings"
1012
name = project.name

0 commit comments

Comments
 (0)