mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-12 05:23:15 +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
|
# build sourcemaps and upload to Sentry
|
||||||
# fix node issue with memory
|
# 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);")
|
if [ -n "$TRAVIS_TAG" ];
|
||||||
- yarn ng build --configuration=production --base-href /static/web-ui/
|
export NODE_OPTIONS=--max_old_space_size=4096
|
||||||
- yarn sentry-cli releases new $RELEASE_VERSION
|
export RELEASE_VERSION=$(node -e "const fs = require('fs'); let p = fs.readFileSync('package.json'); console.log(JSON.parse(p).version);")
|
||||||
- yarn sentry-cli releases files $RELEASE_VERSION upload-sourcemaps dist/
|
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…
x
Reference in New Issue
Block a user