mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
23 lines
608 B
Makefile
Executable file
23 lines
608 B
Makefile
Executable file
RAW_VERSION?=$(shell node scripts/get-version.js)
|
|
FULL_VERSION=v$(RAW_VERSION)
|
|
|
|
build:
|
|
rm -rf dist
|
|
yarn build
|
|
|
|
upload-for-analytics:
|
|
# make sure sentry can retrieve current commit on remote
|
|
git push --tags
|
|
yarn sentry-cli releases new "$(FULL_VERSION)"
|
|
yarn sentry-cli releases set-commits "$(FULL_VERSION)" --auto
|
|
yarn sentry-cli releases files "$(FULL_VERSION)" upload-sourcemaps dist --no-rewrite
|
|
yarn sentry-cli releases finalize "$(FULL_VERSION)"
|
|
|
|
compress:
|
|
rm -f dist/gitako.zip
|
|
cd dist && zip -r gitako.zip * -x *.map
|
|
|
|
release:
|
|
$(MAKE) build
|
|
$(MAKE) upload-for-analytics
|
|
$(MAKE) compress
|