Skip to content

Commit f94f6bc

Browse files
committed
fix CI script to start microsite publish from git tags
1 parent 64243d0 commit f94f6bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function publish {
6565
if [[ "$CI_TAG" =~ ^v.*$ ]] ; then
6666
csbt sonatypeRelease || exit 1
6767
fi
68-
68+
6969
}
7070

7171
function init {
@@ -77,7 +77,7 @@ function init {
7777
fi
7878

7979
export CI_BRANCH=${BUILD_SOURCEBRANCHNAME}
80-
export CI_TAG=${BUILD_SOURCEBRANCHNAME}
80+
export CI_TAG=`git describe --tags | grep v | head -n 1`
8181
export CI_BUILD_NUMBER=${BUILD_BUILDID}
8282
export CI_COMMIT=${BUILD_SOURCEVERSION}
8383

0 commit comments

Comments
 (0)