Skip to content

Commit 8fd8f66

Browse files
committed
chore: create fastlane lane for creating alpha releases
1 parent fb3789d commit 8fd8f66

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

fastlane/Fastfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,32 @@ lane :prod do
7676
skip_upload_apk: true
7777
)
7878
end
79+
80+
desc "Deploy alpha release"
81+
lane :alpha do
82+
version_code = get_properties_value(key: "VERSION_CODE", path: "./app/version.properties")
83+
version_name = get_properties_value(key: "VERSION_NAME", path: "./app/version.properties")
84+
85+
ENV["KEYSTORE_PASSWORD"] = prompt(
86+
text: "Key store password: ",
87+
secure_text: true
88+
)
89+
90+
ENV["KEY_PASSWORD"] = prompt(
91+
text: "Key password: ",
92+
secure_text: true
93+
)
94+
95+
gradle(task: "bundleProRelease")
96+
97+
supply(
98+
aab: "app/build/outputs/bundle/proRelease/app-pro-release.aab",
99+
track: "alpha",
100+
release_status: "completed",
101+
skip_upload_apk: true,
102+
skip_upload_metadata: true,
103+
skip_upload_changelogs: true,
104+
skip_upload_images: true,
105+
skip_upload_screenshots: true
106+
)
107+
end

fastlane/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ Create testing release
2929

3030
Create and deploy production release
3131

32+
### alpha
33+
34+
```sh
35+
[bundle exec] fastlane alpha
36+
```
37+
38+
Deploy alpha release
39+
3240
----
3341

3442
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.

0 commit comments

Comments
 (0)