inital commit 1
This commit is contained in:
commit
90d8b97673
138 files changed
+23684
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
DATE=`date +%Y%m%d`
|
||||
COMMIT=`git rev-parse HEAD`
|
||||
VERSION="$DATE-${COMMIT:0:5}"
|
||||
|
||||
echo "Current version is $VERSION"
|
||||
|
||||
if [ ! -z $USE_SENTRY ] && [ $USE_SENTRY == '1' ]; then
|
||||
|
||||
# create new release according to `VERSION`
|
||||
docker run --rm -it -v $(pwd):/work getsentry/sentry-cli \
|
||||
sentry-cli --auth-token $SENTRY_AUTH_TOKEN releases -o onlinejudge -p onlinejudgefe new $VERSION
|
||||
|
||||
# upload js and source_maps
|
||||
docker run --rm -it -v $(pwd):/work getsentry/sentry-cli \
|
||||
sentry-cli --auth-token $SENTRY_AUTH_TOKEN releases -o onlinejudge -p onlinejudgefe files $VERSION upload-sourcemaps ./dist/static/js
|
||||
fi
|
||||
Reference in new issue
Block a user