2020-07-02 11:51:38 -04:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
2021-08-03 10:32:13 -04:00
|
|
|
if [[ "$BRANCH_NAME" == "master" || "$BRANCH_NAME" == "main" ]]; then
|
2020-07-02 11:51:38 -04:00
|
|
|
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"
|
2024-09-27 04:46:44 -04:00
|
|
|
sentry-cli releases set-commits --auto "$SENTRY_RELEASE"
|
2024-10-09 04:19:43 -04:00
|
|
|
sentry-cli sourcemaps upload --release="$SENTRY_RELEASE" .
|
2020-07-02 11:51:38 -04:00
|
|
|
sentry-cli releases finalize "$SENTRY_RELEASE"
|
|
|
|
|
2024-10-09 04:19:43 -04:00
|
|
|
cd ../..
|
2020-07-02 11:51:38 -04:00
|
|
|
rm -rf sentry_upload
|
|
|
|
fi
|