Skip to content

Commit 02a053d

Browse files
authored
Merge pull request #60 from fassko/master
Automate cocoapods release
2 parents 86d6c99 + 92e08a0 commit 02a053d

File tree

5 files changed

+185
-0
lines changed

5 files changed

+185
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ Carthage/
2626
# MacOS
2727
#
2828
.DS_Store
29+
30+
fastlane/README.md
31+
fastlane/report.xml

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem "fastlane"

Gemfile.lock

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.0)
5+
addressable (2.5.2)
6+
public_suffix (>= 2.0.2, < 4.0)
7+
atomos (0.1.3)
8+
babosa (1.0.2)
9+
claide (1.0.2)
10+
colored (1.2)
11+
colored2 (3.1.2)
12+
commander-fastlane (4.4.6)
13+
highline (~> 1.7.2)
14+
declarative (0.0.10)
15+
declarative-option (0.1.0)
16+
domain_name (0.5.20180417)
17+
unf (>= 0.0.5, < 1.0.0)
18+
dotenv (2.5.0)
19+
emoji_regex (0.1.1)
20+
excon (0.62.0)
21+
faraday (0.15.3)
22+
multipart-post (>= 1.2, < 3)
23+
faraday-cookie_jar (0.0.6)
24+
faraday (>= 0.7.4)
25+
http-cookie (~> 1.0.0)
26+
faraday_middleware (0.12.2)
27+
faraday (>= 0.7.4, < 1.0)
28+
fastimage (2.1.4)
29+
fastlane (2.105.2)
30+
CFPropertyList (>= 2.3, < 4.0.0)
31+
addressable (>= 2.3, < 3.0.0)
32+
babosa (>= 1.0.2, < 2.0.0)
33+
bundler (>= 1.12.0, < 2.0.0)
34+
colored
35+
commander-fastlane (>= 4.4.6, < 5.0.0)
36+
dotenv (>= 2.1.1, < 3.0.0)
37+
emoji_regex (~> 0.1)
38+
excon (>= 0.45.0, < 1.0.0)
39+
faraday (~> 0.9)
40+
faraday-cookie_jar (~> 0.0.6)
41+
faraday_middleware (~> 0.9)
42+
fastimage (>= 2.1.0, < 3.0.0)
43+
gh_inspector (>= 1.1.2, < 2.0.0)
44+
google-api-client (>= 0.21.2, < 0.24.0)
45+
highline (>= 1.7.2, < 2.0.0)
46+
json (< 3.0.0)
47+
mini_magick (~> 4.5.1)
48+
multi_json
49+
multi_xml (~> 0.5)
50+
multipart-post (~> 2.0.0)
51+
plist (>= 3.1.0, < 4.0.0)
52+
public_suffix (~> 2.0.0)
53+
rubyzip (>= 1.2.2, < 2.0.0)
54+
security (= 0.1.3)
55+
simctl (~> 1.6.3)
56+
slack-notifier (>= 2.0.0, < 3.0.0)
57+
terminal-notifier (>= 1.6.2, < 2.0.0)
58+
terminal-table (>= 1.4.5, < 2.0.0)
59+
tty-screen (>= 0.6.3, < 1.0.0)
60+
tty-spinner (>= 0.8.0, < 1.0.0)
61+
word_wrap (~> 1.0.0)
62+
xcodeproj (>= 1.6.0, < 2.0.0)
63+
xcpretty (~> 0.3.0)
64+
xcpretty-travis-formatter (>= 0.0.3)
65+
gh_inspector (1.1.3)
66+
google-api-client (0.23.9)
67+
addressable (~> 2.5, >= 2.5.1)
68+
googleauth (>= 0.5, < 0.7.0)
69+
httpclient (>= 2.8.1, < 3.0)
70+
mime-types (~> 3.0)
71+
representable (~> 3.0)
72+
retriable (>= 2.0, < 4.0)
73+
signet (~> 0.9)
74+
googleauth (0.6.6)
75+
faraday (~> 0.12)
76+
jwt (>= 1.4, < 3.0)
77+
memoist (~> 0.12)
78+
multi_json (~> 1.11)
79+
os (>= 0.9, < 2.0)
80+
signet (~> 0.7)
81+
highline (1.7.10)
82+
http-cookie (1.0.3)
83+
domain_name (~> 0.5)
84+
httpclient (2.8.3)
85+
json (2.1.0)
86+
jwt (2.1.0)
87+
memoist (0.16.0)
88+
mime-types (3.2.2)
89+
mime-types-data (~> 3.2015)
90+
mime-types-data (3.2018.0812)
91+
mini_magick (4.5.1)
92+
multi_json (1.13.1)
93+
multi_xml (0.6.0)
94+
multipart-post (2.0.0)
95+
nanaimo (0.2.6)
96+
naturally (2.2.0)
97+
os (1.0.0)
98+
plist (3.4.0)
99+
public_suffix (2.0.5)
100+
representable (3.0.4)
101+
declarative (< 0.1.0)
102+
declarative-option (< 0.2.0)
103+
uber (< 0.2.0)
104+
retriable (3.1.2)
105+
rouge (2.0.7)
106+
rubyzip (1.2.2)
107+
security (0.1.3)
108+
signet (0.10.0)
109+
addressable (~> 2.3)
110+
faraday (~> 0.9)
111+
jwt (>= 1.5, < 3.0)
112+
multi_json (~> 1.10)
113+
simctl (1.6.5)
114+
CFPropertyList
115+
naturally
116+
slack-notifier (2.3.2)
117+
terminal-notifier (1.8.0)
118+
terminal-table (1.8.0)
119+
unicode-display_width (~> 1.1, >= 1.1.1)
120+
tty-cursor (0.6.0)
121+
tty-screen (0.6.5)
122+
tty-spinner (0.8.0)
123+
tty-cursor (>= 0.5.0)
124+
uber (0.1.0)
125+
unf (0.1.4)
126+
unf_ext
127+
unf_ext (0.0.7.5)
128+
unicode-display_width (1.4.0)
129+
word_wrap (1.0.0)
130+
xcodeproj (1.6.0)
131+
CFPropertyList (>= 2.3.3, < 4.0)
132+
atomos (~> 0.1.3)
133+
claide (>= 1.0.2, < 2.0)
134+
colored2 (~> 3.1)
135+
nanaimo (~> 0.2.6)
136+
xcpretty (0.3.0)
137+
rouge (~> 2.0.7)
138+
xcpretty-travis-formatter (1.0.0)
139+
xcpretty (~> 0.2, >= 0.0.7)
140+
141+
PLATFORMS
142+
ruby
143+
144+
DEPENDENCIES
145+
fastlane
146+
147+
BUNDLED WITH
148+
1.16.4

deploy.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
bundle exec fastlane release

fastlane/Fastfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
default_platform(:ios)
2+
3+
update_fastlane
4+
5+
platform :ios do
6+
desc "Depoy new version"
7+
lane :release do
8+
ensure_git_branch
9+
version = version_get_podspec(path: "NSObject+Rx.podspec")
10+
changelog = prompt(text: "Changelog: ", multi_line_end_keyword: "END")
11+
12+
github_token = ENV['GITHUB_TOKEN']
13+
if !github_token || github_token.empty?
14+
github_token = prompt(text: "Please enter your GitHub token: ")
15+
end
16+
17+
github_release = set_github_release(
18+
repository_name: "RxSwiftCommunity/NSObject-Rx",
19+
api_token: github_token,
20+
name: version,
21+
tag_name: version,
22+
description: changelog,
23+
commitish: "master"
24+
)
25+
sh("git fetch --tags")
26+
pod_push(allow_warnings: true, verbose: true)
27+
end
28+
end

0 commit comments

Comments
 (0)