overleaf/services/web/bin/sentry_upload
Alf Eaton e63ac0e896 Merge pull request #4032 from overleaf/ae-revert-sentry-commits
Disable sentry-cli releases set-commits

GitOrigin-RevId: 5e6d5e29bfbc949f656550e259d9545d274a2b8c
2021-05-13 02:09:14 +00:00

18 lines
500 B
Bash
Executable file

#!/bin/sh
set -e
if [[ "$BRANCH_NAME" == "master" ]]; then
rm -rf sentry_upload
mkdir sentry_upload
tar --directory sentry_upload -xf build.tar
cd sentry_upload/public
SENTRY_RELEASE=${COMMIT_SHA}
OPTS="--no-rewrite --url-prefix ~"
sentry-cli releases new "$SENTRY_RELEASE"
sentry-cli releases files "$SENTRY_RELEASE" upload-sourcemaps ${OPTS} .
# sentry-cli releases set-commits --auto "$SENTRY_RELEASE"
sentry-cli releases finalize "$SENTRY_RELEASE"
rm -rf sentry_upload
fi