Skip to content

Commit 4d45218

Browse files
committed
Add release actions
1 parent 93b5456 commit 4d45218

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
.DEFAULT_GOAL := lint
22

3+
RELEASE_VERSION = $(shell .build/release/hostmgr --version)
4+
35
lint:
46
docker run -it --rm -v `pwd`:`pwd` -w `pwd` ghcr.io/realm/swiftlint:0.47.1 swiftlint lint --strict
57

68
autocorrect:
79
docker run -it --rm -v `pwd`:`pwd` -w `pwd` ghcr.io/realm/swiftlint:0.47.1 swiftlint --autocorrect
10+
11+
build-release:
12+
@echo "--- Building Release"
13+
swift build -c release
14+
15+
release: build-release
16+
@echo "--- Tagging Release"
17+
git tag $(RELEASE_VERSION)
18+
git push origin $(RELEASE_VERSION)

0 commit comments

Comments
 (0)