Skip to content

Commit e079c6c

Browse files
committed
build: add release_status support to actions
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent f76b43b commit e079c6c

3 files changed

Lines changed: 43 additions & 2 deletions

File tree

.github/workflows/build-fcash-upload-android.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,23 @@ on:
1515
description: 'Define PlayStore track name'
1616
required: true
1717
default: 'internal'
18+
type: choice
19+
options:
20+
- internal
21+
- alpha
22+
- beta
23+
- production
24+
25+
release_status:
26+
description: 'Status of the release'
27+
required: true
28+
type: choice
29+
default: 'completed'
30+
options:
31+
- completed
32+
- draft
33+
- inProgress
34+
- halted
1835

1936
jobs:
2037
deploy:
@@ -90,6 +107,7 @@ jobs:
90107
SERVICE_ACCOUNT_KEY_JSON: ${{ steps.service_account_json_file.outputs.filePath }}
91108
PACKAGE_NAME: com.flipcash.android.app
92109
PLAYSTORE_TRACK: ${{ github.event.inputs.track }}
110+
RELEASE_STATUS: ${{ github.event.inputs.release_status }}
93111

94112
- name: Upload build artifacts
95113
uses: actions/upload-artifact@v4

.github/workflows/build-fchat-upload-android.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,23 @@ on:
1515
description: 'Define PlayStore track name'
1616
required: true
1717
default: 'internal'
18+
type: choice
19+
options:
20+
- internal
21+
- alpha
22+
- beta
23+
- production
24+
25+
release_status:
26+
description: 'Status of the release'
27+
default: 'completed'
28+
type: choice
29+
required: true
30+
options:
31+
- completed
32+
- draft
33+
- inProgress
34+
- halted
1835

1936
jobs:
2037
deploy:
@@ -55,6 +72,7 @@ jobs:
5572

5673
- name: Decode Upload Key Store file into location 1
5774
uses: timheuer/base64-to-file@v1
75+
id: signing_key
5876
with:
5977
fileName: key
6078
fileDir: ./key
@@ -91,13 +109,15 @@ jobs:
91109
- name: Build & deploy Android release
92110
run: bundle exec fastlane android deploy_flipchat
93111
env:
112+
STORE_FILE: ${{ steps.signing_key.outputs.filePath }}
94113
STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
95114
KEY_ALIAS: ${{ secrets.KEY_ALIAS}}
96115
KEY_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
97116
SERVICE_ACCOUNT_KEY_JSON: ${{ steps.service_account_json_file.outputs.filePath }}
98117
PACKAGE_NAME: xyz.flipchat.app
99118
PLAYSTORE_TRACK: ${{ github.event.inputs.track }}
100-
119+
RELEASE_STATUS: ${{ github.event.inputs.release_status }}
120+
101121
- name: Upload build artifacts
102122
uses: actions/upload-artifact@v4
103123
if: always()

fastlane/Fastfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ platform :android do
5454
)
5555

5656
upload_to_play_store(
57-
track: "internal",
57+
track: ENV["PLAYSTORE_TRACK"],
58+
# release_status: ENV["RELEASE_STATUS"],
5859
aab: Actions.lane_context[SharedValues::GRADLE_AAB_OUTPUT_PATH],
5960
skip_upload_apk: true,
6061
skip_upload_changelogs: true,
@@ -102,6 +103,7 @@ platform :android do
102103

103104
upload_to_play_store(
104105
track: ENV["PLAYSTORE_TRACK"],
106+
release_status: ENV["RELEASE_STATUS"],
105107
aab: Actions.lane_context[SharedValues::GRADLE_AAB_OUTPUT_PATH],
106108
skip_upload_apk: true,
107109
skip_upload_changelogs: true,
@@ -143,6 +145,7 @@ desc "Build and Deploy a new version of Flipcash to the Google Play Store"
143145

144146
upload_to_play_store(
145147
track: ENV["PLAYSTORE_TRACK"],
148+
release_status: ENV["RELEASE_STATUS"],
146149
aab: Actions.lane_context[SharedValues::GRADLE_AAB_OUTPUT_PATH],
147150
skip_upload_apk: true,
148151
skip_upload_changelogs: true,

0 commit comments

Comments
 (0)