Skip to content

Commit 2694fe6

Browse files
committed
Updated circleci deploy script to sanitize release tags.
1 parent 964b3c4 commit 2694fe6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.circleci/deploy.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ fi
2929

3030
SVN_DIR="/tmp/artifacts"
3131
PROJECT_DIR=$(pwd)
32+
RELEASE_TAG=$(echo $CIRCLE_TAG | sed 's/[^0-9\.]*//g')
3233

33-
echo "Preparing for version $CIRCLE_TAG release..."
34+
echo "Preparing for version $RELEASE_TAG release..."
3435

3536
# Checkout just trunk and assets for efficiency.
3637
# Tagging will be handled on the SVN level.
@@ -62,11 +63,11 @@ svn status | grep '^\!' | sed 's/! *//' | xargs -I% svn rm %@ > /dev/null
6263

6364
# Copy trunk into the current tag directory.
6465
echo "Copying tag..."
65-
svn cp "trunk" "tags/$CIRCLE_TAG"
66+
svn cp "trunk" "tags/$RELEASE_TAG"
6667

6768
svn status
6869

6970
echo "Committing files..."
70-
svn commit -m "Release version $CIRCLE_TAG." --no-auth-cache --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD"
71+
svn commit -m "Release version $RELEASE_TAG." --no-auth-cache --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD"
7172

72-
echo "Plugin version $CIRCLE_TAG deployed."
73+
echo "Plugin version $RELEASE_TAG deployed."

0 commit comments

Comments
 (0)