mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 05:33:01 +00:00
3a1099c4d8
Enable Suspect Commits in Sentry releases GitOrigin-RevId: 599122d5d14c8f926bf1eff54d5602b8d60414c3
18 lines
499 B
Bash
Executable file
18 lines
499 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
|