Only use sentry-cli sourcemaps upload (#20852)

GitOrigin-RevId: d7effc1ca24a987079811acc0476cc55c9b1b4af
This commit is contained in:
Alf Eaton
2024-10-14 11:06:41 +00:00
committed by Copybot
parent 0998cc04df
commit d9a4c5b2bc
3 changed files with 303 additions and 404 deletions
+2 -3
View File
@@ -10,10 +10,9 @@ if [[ "$BRANCH_NAME" == "master" || "$BRANCH_NAME" == "main" ]]; then
SENTRY_RELEASE=${COMMIT_SHA}
sentry-cli releases new "$SENTRY_RELEASE"
sentry-cli releases set-commits --auto "$SENTRY_RELEASE"
sentry-cli files upload --release="$SENTRY_RELEASE" .
sentry-cli sourcemaps inject .
sentry-cli sourcemaps upload --no-rewrite --url-prefix ~ .
sentry-cli sourcemaps upload --release="$SENTRY_RELEASE" .
sentry-cli releases finalize "$SENTRY_RELEASE"
cd ../..
rm -rf sentry_upload
fi