Skip to content

Commit 1524a43

Browse files
committed
Added fastlane lane to release pod
1 parent c1537dc commit 1524a43

File tree

3 files changed

+190
-0
lines changed

3 files changed

+190
-0
lines changed

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: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.1)
5+
addressable (2.7.0)
6+
public_suffix (>= 2.0.2, < 5.0)
7+
atomos (0.1.3)
8+
babosa (1.0.2)
9+
claide (1.0.3)
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+
digest-crc (0.4.1)
17+
domain_name (0.5.20190701)
18+
unf (>= 0.0.5, < 1.0.0)
19+
dotenv (2.7.5)
20+
emoji_regex (1.0.1)
21+
excon (0.66.0)
22+
faraday (0.15.4)
23+
multipart-post (>= 1.2, < 3)
24+
faraday-cookie_jar (0.0.6)
25+
faraday (>= 0.7.4)
26+
http-cookie (~> 1.0.0)
27+
faraday_middleware (0.13.1)
28+
faraday (>= 0.7.4, < 1.0)
29+
fastimage (2.1.5)
30+
fastlane (2.130.0)
31+
CFPropertyList (>= 2.3, < 4.0.0)
32+
addressable (>= 2.3, < 3.0.0)
33+
babosa (>= 1.0.2, < 2.0.0)
34+
bundler (>= 1.12.0, < 3.0.0)
35+
colored
36+
commander-fastlane (>= 4.4.6, < 5.0.0)
37+
dotenv (>= 2.1.1, < 3.0.0)
38+
emoji_regex (>= 0.1, < 2.0)
39+
excon (>= 0.45.0, < 1.0.0)
40+
faraday (~> 0.9)
41+
faraday-cookie_jar (~> 0.0.6)
42+
faraday_middleware (~> 0.9)
43+
fastimage (>= 2.1.0, < 3.0.0)
44+
gh_inspector (>= 1.1.2, < 2.0.0)
45+
google-api-client (>= 0.21.2, < 0.24.0)
46+
google-cloud-storage (>= 1.15.0, < 2.0.0)
47+
highline (>= 1.7.2, < 2.0.0)
48+
json (< 3.0.0)
49+
jwt (~> 2.1.0)
50+
mini_magick (>= 4.9.4, < 5.0.0)
51+
multi_xml (~> 0.5)
52+
multipart-post (~> 2.0.0)
53+
plist (>= 3.1.0, < 4.0.0)
54+
public_suffix (~> 2.0.0)
55+
rubyzip (>= 1.2.2, < 2.0.0)
56+
security (= 0.1.3)
57+
simctl (~> 1.6.3)
58+
slack-notifier (>= 2.0.0, < 3.0.0)
59+
terminal-notifier (>= 2.0.0, < 3.0.0)
60+
terminal-table (>= 1.4.5, < 2.0.0)
61+
tty-screen (>= 0.6.3, < 1.0.0)
62+
tty-spinner (>= 0.8.0, < 1.0.0)
63+
word_wrap (~> 1.0.0)
64+
xcodeproj (>= 1.8.1, < 2.0.0)
65+
xcpretty (~> 0.3.0)
66+
xcpretty-travis-formatter (>= 0.0.3)
67+
gh_inspector (1.1.3)
68+
google-api-client (0.23.9)
69+
addressable (~> 2.5, >= 2.5.1)
70+
googleauth (>= 0.5, < 0.7.0)
71+
httpclient (>= 2.8.1, < 3.0)
72+
mime-types (~> 3.0)
73+
representable (~> 3.0)
74+
retriable (>= 2.0, < 4.0)
75+
signet (~> 0.9)
76+
google-cloud-core (1.3.1)
77+
google-cloud-env (~> 1.0)
78+
google-cloud-env (1.2.1)
79+
faraday (~> 0.11)
80+
google-cloud-storage (1.16.0)
81+
digest-crc (~> 0.4)
82+
google-api-client (~> 0.23)
83+
google-cloud-core (~> 1.2)
84+
googleauth (>= 0.6.2, < 0.10.0)
85+
googleauth (0.6.7)
86+
faraday (~> 0.12)
87+
jwt (>= 1.4, < 3.0)
88+
memoist (~> 0.16)
89+
multi_json (~> 1.11)
90+
os (>= 0.9, < 2.0)
91+
signet (~> 0.7)
92+
highline (1.7.10)
93+
http-cookie (1.0.3)
94+
domain_name (~> 0.5)
95+
httpclient (2.8.3)
96+
json (2.2.0)
97+
jwt (2.1.0)
98+
memoist (0.16.0)
99+
mime-types (3.2.2)
100+
mime-types-data (~> 3.2015)
101+
mime-types-data (3.2019.0331)
102+
mini_magick (4.9.5)
103+
multi_json (1.13.1)
104+
multi_xml (0.6.0)
105+
multipart-post (2.0.0)
106+
nanaimo (0.2.6)
107+
naturally (2.2.0)
108+
os (1.0.1)
109+
plist (3.5.0)
110+
public_suffix (2.0.5)
111+
representable (3.0.4)
112+
declarative (< 0.1.0)
113+
declarative-option (< 0.2.0)
114+
uber (< 0.2.0)
115+
retriable (3.1.2)
116+
rouge (2.0.7)
117+
rubyzip (1.2.3)
118+
security (0.1.3)
119+
signet (0.11.0)
120+
addressable (~> 2.3)
121+
faraday (~> 0.9)
122+
jwt (>= 1.5, < 3.0)
123+
multi_json (~> 1.10)
124+
simctl (1.6.5)
125+
CFPropertyList
126+
naturally
127+
slack-notifier (2.3.2)
128+
terminal-notifier (2.0.0)
129+
terminal-table (1.8.0)
130+
unicode-display_width (~> 1.1, >= 1.1.1)
131+
tty-cursor (0.7.0)
132+
tty-screen (0.7.0)
133+
tty-spinner (0.9.1)
134+
tty-cursor (~> 0.7)
135+
uber (0.1.0)
136+
unf (0.1.4)
137+
unf_ext
138+
unf_ext (0.0.7.6)
139+
unicode-display_width (1.6.0)
140+
word_wrap (1.0.0)
141+
xcodeproj (1.12.0)
142+
CFPropertyList (>= 2.3.3, < 4.0)
143+
atomos (~> 0.1.3)
144+
claide (>= 1.0.2, < 2.0)
145+
colored2 (~> 3.1)
146+
nanaimo (~> 0.2.6)
147+
xcpretty (0.3.0)
148+
rouge (~> 2.0.7)
149+
xcpretty-travis-formatter (1.0.0)
150+
xcpretty (~> 0.2, >= 0.0.7)
151+
152+
PLATFORMS
153+
ruby
154+
155+
DEPENDENCIES
156+
fastlane
157+
158+
BUNDLED WITH
159+
2.0.2

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: "Localize-Swift.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: "marmelroy/Localize-Swift",
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)