mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-06-16 08:31:08 +00:00
ci(deploy): support staged production rollout (userFraction) (#5)
Add an 'inProgress' status + a user_fraction input so production releases can roll out gradually (e.g. 0.2 = 20%) instead of only 100% (completed). userFraction is passed only when status=inProgress; ignored otherwise.
This commit is contained in:
@@ -21,13 +21,19 @@ on:
|
|||||||
- beta
|
- beta
|
||||||
- production
|
- production
|
||||||
status:
|
status:
|
||||||
description: 'Release status (draft, completed)'
|
description: 'Release status (draft, completed, inProgress=staged)'
|
||||||
required: true
|
required: true
|
||||||
default: draft
|
default: draft
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
- draft
|
- draft
|
||||||
- completed
|
- completed
|
||||||
|
- inProgress
|
||||||
|
user_fraction:
|
||||||
|
description: 'Staged rollout fraction for inProgress (e.g. 0.2 = 20%). Ignored unless status=inProgress.'
|
||||||
|
required: false
|
||||||
|
default: '0.2'
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -83,6 +89,8 @@ jobs:
|
|||||||
releaseFiles: app/bundle/releaseMarket/pezkuwi-wallet-android-${{ github.event.inputs.app_version }}.aab
|
releaseFiles: app/bundle/releaseMarket/pezkuwi-wallet-android-${{ github.event.inputs.app_version }}.aab
|
||||||
track: ${{ github.event.inputs.track }}
|
track: ${{ github.event.inputs.track }}
|
||||||
status: ${{ github.event.inputs.status }}
|
status: ${{ github.event.inputs.status }}
|
||||||
|
# userFraction only applies to staged rollout (status=inProgress); empty otherwise
|
||||||
|
userFraction: ${{ github.event.inputs.status == 'inProgress' && github.event.inputs.user_fraction || '' }}
|
||||||
inAppUpdatePriority: 2
|
inAppUpdatePriority: 2
|
||||||
whatsNewDirectory: distribution/whatsnew
|
whatsNewDirectory: distribution/whatsnew
|
||||||
mappingFile: app/mapping/releaseMarket/mapping.txt
|
mappingFile: app/mapping/releaseMarket/mapping.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user