aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2019-11-07 14:10:00 +0100
committern-peugnet <n.peugnet@free.fr>2019-11-07 15:40:53 +0100
commit25119af7a9875275a00e32281685e17b6a9aabd1 (patch)
tree2a9f6cc09c50739800e9b1bafc9fd948c215d952 /Makefile
parent14ff62ace7a8fdc21a8d2f84bd0cbd32edca24af (diff)
downloadwcms-25119af7a9875275a00e32281685e17b6a9aabd1.tar.gz
wcms-25119af7a9875275a00e32281685e17b6a9aabd1.zip
build: add @sentry/cli to release process
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 70722f4..7ca1932 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ export
PATH := vendor/bin:node_modules/.bin:$(PATH)
override GIT_VERSION := $(shell git --no-pager describe --always --tags)
-override CUR_VERSION := $(strip $(shell cat VERSION))
+override CUR_VERSION := $(strip $(shell cat VERSION 2>/dev/null))
js_sources := $(wildcard src/*.js)
js_bundles := $(js_sources:src/%.js=assets/js/%.bundle.js)
@@ -18,9 +18,16 @@ build: VERSION $(js_bundles)
watch: node_modules
webpack --env dev --watch
-release:
+release: node_modules
release-it
+sentryrelease: ENV := prod
+sentryrelease: build
+ sentry-cli releases new $(GIT_VERSION)
+ sentry-cli releases set-commits $(GIT_VERSION) --auto
+ sentry-cli releases files $(GIT_VERSION) upload-sourcemaps assets/js --url-prefix '~/assets/js'
+ sentry-cli releases finalize $(GIT_VERSION)
+
dist: distclean $(zip_release) $(js_srcmaps)
dist/%: ENV := prod
@@ -86,4 +93,4 @@ buildclean:
FORCE: ;
-.PHONY: all build watch release dist clean distclean buildclean
+.PHONY: all build watch release sentryrelease dist clean distclean buildclean