Skip to content

Commit aa75446

Browse files
committed
Better tagging
1 parent 0412258 commit aa75446

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

wercker.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,10 @@ deploy:
4141
- script:
4242
name: "Push release"
4343
code: |
44-
ghr -u fd -r dkr-util -c $WERCKER_GIT_COMMIT --replace --prerelease v1.0.0-b1 ./dist
44+
if [[ "$WERCKER_DEPLOYTARGET_NAME" == "prerelease" ]]; then
45+
TAG="$(echo "$WERCKER_GIT_COMMIT" | cut -c 1-7)"
46+
ghr -u fd -r dkr-util -c $WERCKER_GIT_COMMIT --replace --prerelease "v1.0.0-pre+x${TAG}" ./dist
47+
else
48+
TAG="$(echo "$WERCKER_GIT_COMMIT" | cut -c 1-7)"
49+
ghr -u fd -r dkr-util -c $WERCKER_GIT_COMMIT --replace "v1.0.0+x${TAG}" ./dist
50+
fi

0 commit comments

Comments
 (0)