Skip to content

Instantly share code, notes, and snippets.

@nicgirault
Created December 16, 2017 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicgirault/2c2ebc935180cecd338fc41e2bd1b154 to your computer and use it in GitHub Desktop.
Save nicgirault/2c2ebc935180cecd338fc41e2bd1b154 to your computer and use it in GitHub Desktop.
elif [ "${CIRCLE_BRANCH}" == "master" ]; then
export SENTRY_AUTH_TOKEN=xxx
curl -sL https://sentry.io/get-cli/ | bash
# `git rev-parse HEAD` return the hash of last commit and is used as release id
RELEASE_ID=$(git rev-parse HEAD)
# create new sentry release
sentry-cli releases -o my-account -p my-app new $RELEASE_ID
# upload the `build` directory containing sources and sourcemaps to Sentry and attach it to the release
sentry-cli releases -o my-account -p my-app files $RELEASE_ID upload-sourcemaps build
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment