build: try auto release integration again

This commit is contained in:
Enix 2019-11-01 14:46:38 +08:00
parent dbd608b1bd
commit 6174ed5c03

View file

@ -1,5 +1,6 @@
#!/bin/sh
rm -rf dist
git push
yarn build
GIT_SHA=$(git rev-parse HEAD)
@ -9,7 +10,7 @@ echo "Got version $VERSION"
# sentry
yarn sentry-cli releases new "$VERSION"
git push # make sure sentry can retrieve current commit on remote
yarn sentry-cli releases set-commits $VERSION --commit "EnixCoda/Gitako@$GIT_SHA"
yarn sentry-cli releases set-commits "$VERSION" --auto
yarn sentry-cli releases files "$VERSION" upload-sourcemaps dist --no-rewrite
yarn sentry-cli releases finalize "$VERSION"