Skip to content

Commit 720b6c7

Browse files
committed
Attempt to fix double publish
1 parent 2007e35 commit 720b6c7

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

ci/travis.sh

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,25 @@ elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ] && [ "$bin
1515

1616
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ] && [ "$bintrayUser" != "" ] ; then
1717

18-
echo -e "Building Tag $TRAVIS_REPO_SLUG/$TRAVIS_TAG"
19-
./gradlew \
20-
-Pversion="$TRAVIS_TAG" \
21-
-PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" \
22-
-PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" \
23-
build bintrayUpload --stacktrace
18+
if [ "$TRAVIS_OS_NAME" != "linux" ]; then
19+
20+
echo -e "Building Tag $TRAVIS_REPO_SLUG/$TRAVIS_TAG"
21+
./gradlew \
22+
-Pversion="$TRAVIS_TAG" \
23+
-PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" \
24+
-PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" \
25+
build bintrayUpload --stacktrace
26+
27+
else
28+
29+
echo -e "Building Tag $TRAVIS_REPO_SLUG/$TRAVIS_TAG"
30+
./gradlew \
31+
-Pversion="$TRAVIS_TAG" \
32+
-PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" \
33+
-PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" \
34+
:rsocket-rpc-protobuf:build :rsocket-rpc-protobuf:bintrayUpload --stacktrace
35+
36+
fi
2437

2538
else
2639

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
group=io.rsocket.rpc
2-
version=0.2.6
2+
version=0.2.7

0 commit comments

Comments
 (0)