@@ -106,11 +106,60 @@ jobs:
106106 - deploy :
107107 name : Publish Plugins SDK to Bintray
108108 command : |
109- if [ -n "${BINTRAY_USER}" ]; then
110- if [ "${CIRCLE_BRANCH}" == "master" ]; then
111- make publish
109+ if [[ $CIRCLE_BRANCH == master ]] || [[ $CIRCLE_BRANCH == release-* ]] || [[ $CIRCLE_TAG == v*- ]]; then
110+ if [[ $version != *"SNAPSHOT"* ]]; then
111+ if [ "${CIRCLE_TAG}" == "v*-annotation" ]; then
112+ make publish-annotation
113+ fi
114+ if [ "${CIRCLE_TAG}" == "v*-localization" ]; then
115+ make publish-localization
116+ fi
117+ if [ "${CIRCLE_TAG}" == "v*-building" ]; then
118+ make publish-building
119+ fi
120+ if [ "${CIRCLE_TAG}" == "v*-markerview" ]; then
121+ make publish-markerview
122+ fi
123+ if [ "${CIRCLE_TAG}" == "v*-offline" ]; then
124+ make publish-offline
125+ fi
126+ if [ "${CIRCLE_TAG}" == "v*-places" ]; then
127+ make publish-places
128+ fi
129+ if [ "${CIRCLE_TAG}" == "v*-scalebar" ]; then
130+ make publish-scalebar
131+ fi
132+ if [ "${CIRCLE_TAG}" == "v*-traffic" ]; then
133+ make publish-traffic
134+ fi
135+ else
136+ if [ "${CIRCLE_TAG}" == "v*-annotation" ]; then
137+ make publish-snapshot-annotation
138+ fi
139+ if [ "${CIRCLE_TAG}" == "v*-localization" ]; then
140+ make publish-snapshot-localization
141+ fi
142+ if [ "${CIRCLE_TAG}" == "v*-building" ]; then
143+ make publish-snapshot-building
144+ fi
145+ if [ "${CIRCLE_TAG}" == "v*-markerview" ]; then
146+ make publish-snapshot-markerview
147+ fi
148+ if [ "${CIRCLE_TAG}" == "v*-offline" ]; then
149+ make publish-snapshot-offline
150+ fi
151+ if [ "${CIRCLE_TAG}" == "v*-places" ]; then
152+ make publish-snapshot-places
153+ fi
154+ if [ "${CIRCLE_TAG}" == "v*-scalebar" ]; then
155+ make publish-snapshot-scalebar
156+ fi
157+ if [ "${CIRCLE_TAG}" == "v*-traffic" ]; then
158+ make publish-snapshot-traffic
159+ fi
112160 fi
113161 fi
162+
114163 - store_artifacts :
115164 path : app/build/reports
116165 destination : reports
0 commit comments