first commit

This commit is contained in:
2025-04-24 13:11:28 +08:00
commit ff9c54d5e4
5960 changed files with 834111 additions and 0 deletions

18
services/web/bin/sentry_upload Executable file
View File

@@ -0,0 +1,18 @@
#!/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 sourcemaps upload --release="$SENTRY_RELEASE" .
sentry-cli releases finalize "$SENTRY_RELEASE"
cd ../..
rm -rf sentry_upload
fi