Skip to content

Commit 6e1c50f

Browse files
authored
Added promote-to-production.yml workflow
1 parent ffa1313 commit 6e1c50f

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# GitHub Actions Workflow for Play Store Release Promotion
2+
#
3+
# PURPOSE:
4+
# This workflow automates the process of promoting a beta release
5+
# to the production track on Google Play Store.
6+
#
7+
# PREREQUISITES:
8+
# 1. Fastlane setup with Android deployment configurations
9+
# 2. Configured Fastlane lanes:
10+
# - `promote_to_production`: Handles beta to production promotion
11+
#
12+
# REQUIRED CONFIGURATION:
13+
# - Secrets:
14+
# PLAYSTORECREDS: Google Play Store service account JSON credentials
15+
#
16+
# INPUTS:
17+
# - android_package_name: Name of the Android project module
18+
# (REQUIRED, must match your project's module structure)
19+
#
20+
# WORKFLOW TRIGGERS:
21+
# - Can be called manually or triggered by other workflows
22+
# - Typically used after beta testing and validation
23+
#
24+
# DEPLOYMENT PROCESS:
25+
# 1. Checks out repository code
26+
# 2. Sets up Ruby and Fastlane environment
27+
# 3. Inflates Play Store credentials
28+
# 4. Runs Fastlane lane to promote beta to production
29+
#
30+
# IMPORTANT NOTES:
31+
# - Requires proper Fastlane configuration in your project
32+
# - Ensures consistent and automated Play Store deployments
33+
# - Configurable retry mechanism for upload stability
34+
#
35+
# RECOMMENDED FASTLANE LANE IMPLEMENTATION:
36+
# ```ruby
37+
# lane :promote_to_production do
38+
# upload_to_play_store(
39+
# track: 'beta',
40+
# track_promote_to: 'production',
41+
# json_key: './playStorePublishServiceCredentialsFile.json'
42+
# )
43+
# end
44+
# ```
45+
46+
# https://github.com/openMF/mifos-mobile-github-actions/blob/main/.github/workflows/promote-to-production.yaml
47+
48+
# ##############################################################################
49+
# DON'T EDIT THIS FILE UNLESS NECESSARY #
50+
# ##############################################################################
51+
52+
name: Promote Release to Play Store
53+
54+
# Workflow triggers:
55+
# 1. Manual trigger with option to publish to Play Store
56+
# 2. Automatic trigger when a GitHub release is published
57+
on:
58+
workflow_dispatch:
59+
inputs:
60+
publish_to_play_store:
61+
required: false
62+
default: false
63+
description: Publish to Play Store?
64+
type: boolean
65+
release:
66+
types: [ released ]
67+
68+
concurrency:
69+
group: "production-deploy"
70+
cancel-in-progress: false
71+
72+
permissions:
73+
contents: write
74+
75+
jobs:
76+
# Job to promote app from beta to production in Play Store
77+
play_promote_production:
78+
name: Promote Beta to Production Play Store
79+
uses: openMF/mifos-mobile-github-actions/.github/workflows/promote-to-production.yaml@main
80+
if: ${{ inputs.publish_to_play_store == true }}
81+
secrets: inherit
82+
with:
83+
android_package_name: 'mifospay-android'

0 commit comments

Comments
 (0)