Created
December 16, 2017 10:51
-
-
Save nicgirault/2c2ebc935180cecd338fc41e2bd1b154 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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