sentry_upload 440 B

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