Upload sourcemaps by hash

This commit is contained in:
Jon Staab
2025-02-03 12:37:17 -08:00
parent 8ec4d9c548
commit eab0ea4eef
2 changed files with 16 additions and 1 deletions
Executable
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
hash=$(find build -type f -print0 | sort -z | xargs -0 sha1sum | sha1sum | awk '{print $1}')
sentry-cli \
--url https://glitchtip.coracle.social \
--auth-token $GLITCHTIP_AUTH_TOKEN \
--api-key $VITE_GLITCHTIP_API_KEY \
sourcemaps \
--org coracle \
--project flotilla \
--release $hash \
upload \
--url-prefix /_app/immutable/ \
build/_app/immutable