Skip to content

Commit b074296

Browse files
committed
build: allow defining play store track for CI
Signed-off-by: Brandon McAnsh <[email protected]>
1 parent 6dfb22b commit b074296

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/build-fc-upload-android-internal.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Flipchat Build and Deploy (Internal)
1+
name: Flipchat Build and Deploy
22

33
env:
44
# The name of the main module repository
@@ -10,6 +10,11 @@ env:
1010
on:
1111
# Allows you to run this workflow manually from the Actions tab
1212
workflow_dispatch:
13+
inputs:
14+
track:
15+
description: 'Define PlayStore track name'
16+
required: true
17+
default: 'internal'
1318

1419
jobs:
1520
deploy:
@@ -90,6 +95,7 @@ jobs:
9095
KEY_ALIAS: ${{ secrets.KEY_ALIAS}}
9196
KEY_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
9297
SERVICE_ACCOUNT_KEY_JSON: ${{ steps.service_account_json_file.outputs.filePath }}
98+
PLAYSTORE_TRACK: ${{ github.event.inputs.track }}
9399

94100
- name: Upload build artifacts
95101
uses: actions/upload-artifact@v4

fastlane/Fastfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ platform :android do
5858
end
5959

6060

61-
desc "Build and Deploy a new internal version of Flipchat to the Google Play Store"
62-
lane :deploy_fc_internal do
61+
desc "Build and Deploy a new version of Flipchat to the Google Play Store"
62+
lane :deploy_fc do
6363
#puts "Patch version for this build will be " + ENV["BUILD_NUMBER"]
6464
gradle(
6565
task: "clean flipchatApp:bundle", #"clean app:bundleRelease",
@@ -89,7 +89,7 @@ platform :android do
8989
)
9090

9191
upload_to_play_store(
92-
track: "internal",
92+
track: ENV["PLAYSTORE_TRACK"],
9393
aab: Actions.lane_context[SharedValues::GRADLE_AAB_OUTPUT_PATH],
9494
skip_upload_apk: true,
9595
skip_upload_changelogs: true,

0 commit comments

Comments
 (0)