File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ phases:
33
33
git add package-lock.json
34
34
git commit -m "Release $VERSION"
35
35
echo "tagging commit"
36
- git tag -a "v$VERSION" -m "version $VERSION $DATE"
36
+ # e.g. amazonq/v1.0.0
37
+ git tag -a "${TARGET_EXTENSION}/v${VERSION}" -m "${TARGET_EXTENSION} version $VERSION $DATE"
37
38
# cleanup
38
39
git clean -fxd
39
40
git reset HEAD --hard
Original file line number Diff line number Diff line change @@ -34,10 +34,11 @@ phases:
34
34
- echo "Writing hash to $HASH_UPLOAD_TARGET"
35
35
- echo $HASH > $HASH_UPLOAD_TARGET
36
36
- echo "posting $VERSION with sha384 hash $HASH to GitHub"
37
- - RELEASE_MESSAGE="AWS Toolkit for VS Code $VERSION"
37
+ - PKG_DISPLAY_NAME=$(grep -m 1 displayName packages/${TARGET_EXTENSION}/package.json | grep -o '[a-zA-z][^\"]\+' | tail -n1)
38
+ - RELEASE_MESSAGE="${PKG_DISPLAY_NAME} for VS Code $VERSION"
38
39
- |
39
- if [ "$STAGE" = "prod" ] && [ "$TARGET_EXTENSION" = "toolkit" ] ; then
40
- gh release create --repo $REPO --title "$VERSION" --notes "$RELEASE_MESSAGE" -- "v$VERSION" "$UPLOAD_TARGET" "$HASH_UPLOAD_TARGET"
40
+ if [ "$STAGE" = "prod" ]; then
41
+ gh release create --repo $REPO --title "$PKG_DISPLAY_NAME $ VERSION" --notes "$RELEASE_MESSAGE" -- "v$VERSION" "$UPLOAD_TARGET" "$HASH_UPLOAD_TARGET"
41
42
else
42
43
echo "SKIPPED: 'gh release create --repo $REPO'"
43
44
fi
You can’t perform that action at this time.
0 commit comments