mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
3988f815af
[web] temporarily disable upload of source maps to sentry GitOrigin-RevId: 76eaa7533baf74b92002d6ba91b2220fc79aa3f9
20 lines
522 B
Bash
Executable file
20 lines
522 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
echo "Sentry upload is temporarily disabled."
|
|
exit 0
|
|
|
|
if [[ "$BRANCH_NAME" == "master" || "$BRANCH_NAME" == "main" ]]; 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 finalize "$SENTRY_RELEASE"
|
|
|
|
rm -rf sentry_upload
|
|
fi
|