Skip to content

Commit 96a3eb9

Browse files
authored
Merge pull request #44 from Automattic/add/release-tooling
Add release actions
2 parents 93b5456 + 4d45218 commit 96a3eb9

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)