Skip to content

Commit

Permalink
Feat: make and push tags with make (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
asieduernest12 authored Aug 17, 2023
1 parent ffbd148 commit 579ce32
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
remote?=origin
tag?=no-tag
CONTINUE=-1

tag:
@echo "making tags: [$(tag), $(tag)-development]"
# @if [ "$(CONTINUE)" -eq "-1" ]; then "$$(read -p "press any key to continue")"; fi
# @if [ "$(CONTINUE)" -eq "0" ]; then echo "exiting"; EXIT 1; fi
@git tag "$(tag)";
@git tag "$(tag)-development"
@git tag | grep -e "$(tag)"

push-tag:
@echo "branch:$(remote) tag:[$(tag), $(tag)-development]"
@git push "$(remote)" "$(tag)"
@git push "$(remote)" "$(tag)-development"

0 comments on commit 579ce32

Please sign in to comment.