Skip to content

Commit

Permalink
setup makefile for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcz committed May 26, 2021
1 parent e3220b4 commit 6e65c40
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 6e65c40

Please sign in to comment.