mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-30 02:32:58 +05:30
Send source maps to Sentry on release
This commit is contained in:
parent
100ba4c897
commit
28d65af0f6
@ -38,6 +38,11 @@ before_deploy:
|
|||||||
- ssh-add /tmp/deploy_rsa
|
- ssh-add /tmp/deploy_rsa
|
||||||
# Removing unneeded files
|
# Removing unneeded files
|
||||||
- rm -rf dist/messages
|
- rm -rf dist/messages
|
||||||
|
- rm -rf dist/*.css.map
|
||||||
|
# Move all source maps to it's own directory
|
||||||
|
- mkdir source-maps
|
||||||
|
- mv dist/*.js.map source-maps/
|
||||||
|
- cp dist/*.js source-maps/
|
||||||
# Creating tar.gz and zip archives
|
# Creating tar.gz and zip archives
|
||||||
- cd dist
|
- cd dist
|
||||||
- tar -zcf ../dist.tar.gz --exclude="*.map" *
|
- tar -zcf ../dist.tar.gz --exclude="*.map" *
|
||||||
@ -67,6 +72,7 @@ deploy:
|
|||||||
curl -sL https://sentry.io/get-cli/ | bash &&
|
curl -sL https://sentry.io/get-cli/ | bash &&
|
||||||
sentry-cli releases new -p $SENTRY_PROJECT $VERSION &&
|
sentry-cli releases new -p $SENTRY_PROJECT $VERSION &&
|
||||||
sentry-cli releases set-commits --auto $VERSION &&
|
sentry-cli releases set-commits --auto $VERSION &&
|
||||||
|
sentry-cli releases files $VERSION upload-sourcemaps source-maps &&
|
||||||
sentry-cli releases deploys $VERSION new -e "Production"
|
sentry-cli releases deploys $VERSION new -e "Production"
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
|
Loading…
Reference in New Issue
Block a user