File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ version : 0.2
2+
3+ phases :
4+ install :
5+ runtime-versions :
6+ nodejs : 20
7+
8+ pre_build :
9+ commands :
10+ # Check for implicit env vars passed from the release pipeline.
11+ - test -n "${NOTIFY_URL}"
12+ - test -n "${TARGET_EXTENSION}"
13+
14+ build :
15+ commands :
16+ - echo "TARGET_EXTENSION=${TARGET_EXTENSION}"
17+ - EXTENSION_NAME=$([ "$TARGET_EXTENSION" = "amazonq" ] && echo "Amazon Q" || echo "AWS Toolkit")
18+ - VERSION=$(node -e "console.log(require('./packages/${TARGET_EXTENSION}/package.json').version);")
19+ - CHANGELOG=$(cat packages/${TARGET_EXTENSION}/CHANGELOG.md | perl -ne 'BEGIN{$/="\n\n"} print if $. == 2')
20+ - MESSAGE=$(envsubst < "$GITHUB_WORKSPACE/buildspec/release/notify.txt")
21+ - DATA="{'Content':'${MESSAGE}'}"
22+ - |
23+ # TODO: Enable for prod only after testing
24+ if [ "$STAGE" = "prod" ]; then
25+ echo "SKIPPED (stage=${STAGE}): 'curl -v POST \"[SLACK_URL]\" -H \"Content-Type:application/json\" --data $DATA'"
26+ exit 0
27+ fi
28+ curl -v POST "${NOTIFY_URL}" -H "Content-Type:application/json" --data $DATA
Original file line number Diff line number Diff line change 1+ Released ${EXTENSION_NAME} v${VERSION} for VSCode
2+
3+ ${CHANGELOG}
4+
5+ Changelog: https://github.com/aws/aws-toolkit-vscode/blob/master/packages/${TARGET_EXTENSION}/CHANGELOG.md
6+ Release Arifact: https://github.com/aws/aws-toolkit-vscode/releases/tag/${TARGET_EXTENSION}/v${VERSION}
You can’t perform that action at this time.
0 commit comments