-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (32 loc) · 788 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
podspec_path := $(wildcard *.podspec)
# @public
# @param VER: string
# @example make pod VER=v0.2.0
pod: podspec pod_push
# @public
# @param VER: string
# @example make release VER=v0.1.0
release: github_release podspec pod_push
# @param VER: string
# @example make release VER=v0.1.0
github_release:
git tag $(VER) && git push --tags
github-release release \
--user $(USER) \
--repo $(PROJECT) \
--tag $(VER) \
--name $(VER) \
--pre-release
# Update *.podspec's version to specified version.
#
# @param VER: string
# @example make podspec VER=v0.1.0
podspec:
sed \
-i "" \
-e 's/= "[0-9]*\.[0-9]*\.[0-9]*"/= \"$(subst v,,$(VER))\"/' \
-e "s/v[0-9]*\.[0-9]*\.[0-9]*/$(VER)/" \
$(podspec_path)
# Push to the CocoaPods Specs Repo
pod_push:
pod trunk push --allow-warning