mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-24 21:12:38 -04:00
d9a4c5b2bc
GitOrigin-RevId: d7effc1ca24a987079811acc0476cc55c9b1b4af
18 lines
488 B
Bash
Executable file
18 lines
488 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}
|
|
sentry-cli releases new "$SENTRY_RELEASE"
|
|
sentry-cli releases set-commits --auto "$SENTRY_RELEASE"
|
|
sentry-cli sourcemaps upload --release="$SENTRY_RELEASE" .
|
|
sentry-cli releases finalize "$SENTRY_RELEASE"
|
|
|
|
cd ../..
|
|
rm -rf sentry_upload
|
|
fi
|