mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 13:49:00 +02:00
00f82a6196
GitOrigin-RevId: 74ef0d393c2c14577951d7195886933c05d06a61
18 lines
468 B
Bash
Executable File
18 lines
468 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 files "$SENTRY_RELEASE" upload-sourcemaps ${OPTS} .
|
|
sentry-cli releases finalize "$SENTRY_RELEASE"
|
|
|
|
rm -rf sentry_upload
|
|
fi
|