Skip to content

Commit

Permalink
automate the generation of version using shell
Browse files Browse the repository at this point in the history
  • Loading branch information
george-silva committed May 9, 2024
1 parent 9871b65 commit b33643c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ STORYBOOK_WWW_DIR=/var/www/html/storybook/
# Systemd User Control
SYS_CTL=systemctl --user
TAG=main
VERSION="$$(date '+%Y.%m.%d')-$$(git log --abbrev=10 --format=%h | head -1)"

help:
@echo 'Available commands:'
Expand All @@ -41,7 +42,7 @@ taggit:
set -e; \
git checkout main; \
git pull origin main; \
git tag -a $(VERSION); \
git tag -a $(VERSION) -m $(VERSION); \
git push origin --tags; \
echo "Completed taggit"

Expand Down

0 comments on commit b33643c

Please sign in to comment.