-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (29 loc) · 919 Bytes
/
Makefile
File metadata and controls
32 lines (29 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
VERSION ?= 6.6.0
WORKFLOW_FOLDER := .github/workflows
ifneq (,$(findstring xterm,${TERM}))
RED := $(shell tput -Txterm setaf 1)
GREEN := $(shell tput -Txterm setaf 2)
YELLOW := $(shell tput -Txterm setaf 3)
LIGHTPURPLE := $(shell tput -Txterm setaf 4)
RESET := $(shell tput -Txterm sgr0)
else
RED := ""
GREEN := ""
YELLOW := ""
LIGHTPURPLE := ""
RESET := ""
endif
.PHONY: release-version
release-version:
@echo -e "${LIGHTPURPLE}+ make target: $@${RESET}"
sed -i \
-e 's%\(getdevopspro/github-actions[^@]*\)@v[^[:space:]]*%\1@v$(VERSION)%g' \
$(WORKFLOW_FOLDER)/*.y*ml
git add $(WORKFLOW_FOLDER)
promote: release-version
@echo -e "${LIGHTPURPLE}+ make target: $@${RESET}"
git add Makefile
git commit -m "chore: bump version to v$(VERSION)" -m "[skip ci]"
git tag v$(VERSION)
git push origin HEAD v$(VERSION)
release: release-version promote