mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
e4f0ea83e7
GitOrigin-RevId: 1fa77e49f8c5124f30774536b044d96d06ca8c18
17 lines
510 B
Bash
Executable file
17 lines
510 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 releases files "$SENTRY_RELEASE" upload-sourcemaps --no-rewrite --url-prefix ~ .
|
|
sentry-cli releases finalize "$SENTRY_RELEASE"
|
|
|
|
rm -rf sentry_upload
|
|
fi
|