sentry_upload 522 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. set -e
  3. echo "Sentry upload is temporarily disabled."
  4. exit 0
  5. if [[ "$BRANCH_NAME" == "master" || "$BRANCH_NAME" == "main" ]]; then
  6. rm -rf sentry_upload
  7. mkdir sentry_upload
  8. tar --directory sentry_upload -xf build.tar
  9. cd sentry_upload/public
  10. SENTRY_RELEASE=${COMMIT_SHA}
  11. OPTS="--no-rewrite --url-prefix ~"
  12. sentry-cli releases new "$SENTRY_RELEASE"
  13. sentry-cli releases files "$SENTRY_RELEASE" upload-sourcemaps ${OPTS} .
  14. sentry-cli releases finalize "$SENTRY_RELEASE"
  15. rm -rf sentry_upload
  16. fi