mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-14 15:16:18 +00:00
18 lines
330 B
Makefile
18 lines
330 B
Makefile
|
|
.PHONY: verify-tag release
|
|
|
|
default: release
|
|
|
|
verify-tag:
|
|
ifndef TAG
|
|
$(error TAG is undefined)
|
|
endif
|
|
|
|
release: verify-tag
|
|
@ OLD_TAG=`git describe --abbrev=0 --tags` && \
|
|
npm run minify && \
|
|
replace "$${OLD_TAG/v/}" "$(TAG)" -- *.json README.md && \
|
|
git commit -m "v$(TAG)" *.js *.json README.md && \
|
|
git tag "v$(TAG)"
|
|
|