mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-18 20:47:51 +00:00
Upload SourceMaps only when on tag
This commit is contained in:
parent
9a7290b7e7
commit
d537a51b32
13
.travis.yml
13
.travis.yml
@ -72,8 +72,11 @@ after_script:
|
||||
|
||||
# build sourcemaps and upload to Sentry
|
||||
# fix node issue with memory
|
||||
- export NODE_OPTIONS=--max_old_space_size=4096
|
||||
- export RELEASE_VERSION=$(node -e "const fs = require('fs'); let p = fs.readFileSync('package.json'); console.log(JSON.parse(p).version);")
|
||||
- yarn ng build --configuration=production --base-href /static/web-ui/
|
||||
- yarn sentry-cli releases new $RELEASE_VERSION
|
||||
- yarn sentry-cli releases files $RELEASE_VERSION upload-sourcemaps dist/
|
||||
- |
|
||||
if [ -n "$TRAVIS_TAG" ];
|
||||
export NODE_OPTIONS=--max_old_space_size=4096
|
||||
export RELEASE_VERSION=$(node -e "const fs = require('fs'); let p = fs.readFileSync('package.json'); console.log(JSON.parse(p).version);")
|
||||
yarn ng build --configuration=production --base-href /static/web-ui/
|
||||
yarn sentry-cli releases new $RELEASE_VERSION
|
||||
yarn sentry-cli releases files $RELEASE_VERSION upload-sourcemaps dist/
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user