File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,13 @@ phases:
3636 - echo "posting $VERSION with sha384 hash $HASH to GitHub"
3737 - PKG_DISPLAY_NAME=$(grep -m 1 displayName packages/${TARGET_EXTENSION}/package.json | grep -o '[a-zA-z][^\"]\+' | tail -n1)
3838 - RELEASE_MESSAGE="${PKG_DISPLAY_NAME} for VS Code $VERSION"
39+ # Only set amazonq as "latest" release. This ensures https://api.github.com/repos/aws/aws-toolkit-vscode/releases/latest
40+ # consistently points to the amazonq artifact, instead of being "random".
41+ - LATEST="$([ "$TARGET_EXTENSION" = amazonq ] && echo '--latest' || echo '--latest=false' )"
3942 - |
4043 if [ "$STAGE" = "prod" ]; then
4144 # note: the tag arg passed here should match what is in 10changeversion.yml
42- gh release create --repo $REPO --title "$PKG_DISPLAY_NAME $VERSION" --notes "$RELEASE_MESSAGE" -- "${TARGET_EXTENSION}/v${VERSION}" "$UPLOAD_TARGET" "$HASH_UPLOAD_TARGET"
45+ gh release create "$LATEST" --repo $REPO --title "$PKG_DISPLAY_NAME $VERSION" --notes "$RELEASE_MESSAGE" -- "${TARGET_EXTENSION}/v${VERSION}" "$UPLOAD_TARGET" "$HASH_UPLOAD_TARGET"
4346 else
4447 echo "SKIPPED (stage=${STAGE}): 'gh release create --repo $REPO'"
4548 fi
You can’t perform that action at this time.
0 commit comments