mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 22:41:00 +00:00
e41e11bc23
GitOrigin-RevId: 436c5ef26fd5982c2e759986d85b55b61d254a16
18 lines
527 B
Bash
Executable file
18 lines
527 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
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 set-commits --auto "$SENTRY_RELEASE"
|
|
sentry-cli releases files "$SENTRY_RELEASE" upload-sourcemaps ${OPTS} .
|
|
sentry-cli releases finalize "$SENTRY_RELEASE"
|
|
|
|
rm -rf sentry_upload
|
|
fi
|