diff --git a/circle.yml b/circle.yml index ee9800ece..3b7620363 100644 --- a/circle.yml +++ b/circle.yml @@ -4,7 +4,10 @@ workflows: default: jobs: - build - - release + - release: + filters: + tags: + only: /v.*/ jobs: build: working_directory: ~/code @@ -67,7 +70,7 @@ jobs: name: Update version name command: | if [[ $CIRCLE_TAG == v* ]]; then - sed -i -e "s/^VERSION_NAME=.*/VERSION_NAME=${CIRCLE_TAG:9}/" gradle.properties + sed -i -e "s/^VERSION_NAME=.*/VERSION_NAME=${CIRCLE_TAG:1}/" gradle.properties fi - run: name: Build Java libraries diff --git a/gradle/gradle-bintray.gradle b/gradle/gradle-bintray.gradle index e73cae382..e32f37dc2 100644 --- a/gradle/gradle-bintray.gradle +++ b/gradle/gradle-bintray.gradle @@ -52,7 +52,7 @@ publishing { bintray { user = mapboxBintrayUser key = mapboxBintrayApiKey - publications = ['MapboxJavaSDKPublication'] + publications('MapboxJavaSDKPublication') pkg { repo = project.ext.mapboxBintrayRepoName name = project.ext.mapboxArtifactId