-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
11 additions
and
8 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
#!/bin/sh | ||
#!/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 ]; then | ||
# create new release according to `VERSION` | ||
docker run --rm -it -v $(pwd):/work getsentry/sentry-cli \ | ||
sentry-cli --auth-token 95c95811dcf14d4e9fdf2e63b9e027367b3bd1db91ab42a49e72648b7751ae6d releases -o onlinejudge -p onlinejudgefe $VERSION | ||
sentry-cli --auth-token 95c95811dcf14d4e9fdf2e63b9e027367b3bd1db91ab42a49e72648b7751ae6d 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 95c95811dcf14d4e9fdf2e63b9e027367b3bd1db91ab42a49e72648b7751ae6d releases -o onlinejudge -p onlinejudgefe files $VERSION upload-sourcemaps ./dist/static/js | ||
sentry-cli --auth-token 95c95811dcf14d4e9fdf2e63b9e027367b3bd1db91ab42a49e72648b7751ae6d releases -o onlinejudge -p onlinejudgefe files $VERSION upload-sourcemaps ./dist/static/js | ||
fi |