Associate commits with Sentry releases (#20401)

GitOrigin-RevId: 436c5ef26fd5982c2e759986d85b55b61d254a16
This commit is contained in:
Alf Eaton 2024-09-27 09:46:44 +01:00 committed by Copybot
parent 1cf1624aea
commit e41e11bc23

View file

@ -10,6 +10,7 @@ if [[ "$BRANCH_NAME" == "master" || "$BRANCH_NAME" == "main" ]]; then
SENTRY_RELEASE=${COMMIT_SHA}
OPTS="--no-rewrite --url-prefix ~"
sentry-cli releases new "$SENTRY_RELEASE"
sentry-cli releases set-commits --auto "$SENTRY_RELEASE"
sentry-cli releases files "$SENTRY_RELEASE" upload-sourcemaps ${OPTS} .
sentry-cli releases finalize "$SENTRY_RELEASE"