-
Notifications
You must be signed in to change notification settings - Fork 3
/
Fastfile
70 lines (59 loc) · 1.57 KB
/
Fastfile
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
default_platform(:ios)
platform :ios do
before_all do
codepush_login # Make sure you've set APP_CENTER_LOGIN_TOKEN environment variable
# OR
codepush_login(login_token: "foo")
end
lane :deploy_to_codepush do
## Release RN bundle
codepush_release_react # Make sure you've set APP_CENTER_APP_NAME environment variable
## OR
codepush_release_react(
app_name: "pharekar/MyAwesomeApp"
)
end
lane :promote_to_production do
## Promote deployment
codepush_promote(
app_name: "pharekar/MyAwesomeApp",
source_deployment_name: "Staging",
destination_deployment_name: "Production"
)
end
lane :misc_deployment_lanes do
## Add new deployment
codepush_add_deployment(
app_name: "pharekar/MyAwesomeApp",
deployment_name: "Alpha"
)
## Remove deployment
codepush_remove_deployment(
app_name: "pharekar/MyAwesomeApp",
deployment_name: "Alpha"
)
## Rename deployment
codepush_rename_deployment(
app_name: "pharekar/MyAwesomeApp",
deployment_name: "Alpha",
new_deployment_name: "Internal-Alpha"
)
## List all deployments
codepush_list_deployment(
app_name: "pharekar/MyAwesomeApp"
)
## Check if deployment exists
codepush_exists_deployment(
app_name: "pharekar/MyAwesomeApp",
deployment_name: "Alpha"
)
## Get deployment key associated with deployment
codepush_get_deployment_key(
app_name: "pharekar/MyAwesomeApp",
deployment_name: "Alpha"
)
end
after_all do
codepush_logout
end
end