From 6e65c401dee9989ff65fd8e0dd87107e8c01b2af Mon Sep 17 00:00:00 2001 From: Tom Czarniecki Date: Wed, 26 May 2021 10:34:55 -0700 Subject: [PATCH] setup makefile for github actions --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cfea246..a4dbbce 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,11 @@ -GIT_SHA ?= $(shell git rev-parse --short=7 HEAD) +GIT_TAG := $(shell git describe --tags 2>/dev/null) + +.PHONY: all +all: clean test build-jar .PHONY: build-jar build-jar: clean - ./gradlew --console plain -Pversion=${GIT_SHA} shadowJar + ./gradlew --console plain -Pversion=${GIT_TAG} shadowJar .PHONY: clean clean: