Skip to content

Commit 32df4b1

Browse files
committed
Delete source maps after uploading
1 parent 46a1810 commit 32df4b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/webapp/upload-sourcemaps.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ if [ -n "$SENTRY_ORG" ] && [ -n "$SENTRY_PROJECT" ] && [ -n "$SENTRY_AUTH_TOKEN"
55
sentry-cli releases new $SENTRY_RELEASE
66
sentry-cli sourcemaps inject ./build
77
sentry-cli sourcemaps upload ./build --release $SENTRY_RELEASE
8+
# Now we need to delete the sourcemaps from the build directory
9+
rm -rf ./build/*.map
810
else
911
echo "Skipping sourcemap upload: Missing required environment variables"
1012
echo "Required: SENTRY_ORG, SENTRY_PROJECT, SENTRY_AUTH_TOKEN, SENTRY_RELEASE"

0 commit comments

Comments
 (0)