我正在尝试使用Fastlane的supply
(upload_to_play_store
)操作(https://docs.fastlane.tools/actions/supply/)来提高现有Google Play商店版本的分阶段推出百分比。
但是,执行fastlane supply --track rollout --rollout 0.50
不会将推出百分比提高到 50%,相反,即使 fastlane 显示成功消息,也不会更改 Google Play 开发者控制台中的任何内容。
快车道的输出:
+-------------------------+-------------------------------+
| Summary for supply 2.122.0 |
+-------------------------+-------------------------------+
| track | production |
| rollout | 0.5 |
| package_name | com.mydomain.myapp |
| metadata_path | ./fastlane/metadata/android |
| json_key_data | ******** |
| skip_upload_apk | false |
| skip_upload_aab | false |
| skip_upload_metadata | false |
| skip_upload_images | false |
| skip_upload_screenshots | false |
| validate_only | false |
| check_superseded_tracks | false |
| timeout | 300 |
| deactivate_on_promote | true |
+-------------------------+-------------------------------+
[14:09:27]: Preparing to upload for language 'en-US'...
[14:09:31]: Uploading all changes to Google Play...
[14:09:34]: Successfully finished the upload to Google Play
如何使用 Fastlane 的supply
操作来提高"生产"轨道中当前版本的推出百分比?
更新:没有找到使用 Fastlane 解决问题的实际解决方案,所以我们切换到 Triple-T 的 gradle-play-publisher 插件,它可以做我们想做的事情。
必须设置轨道:卷展栏track_promote_to:轮盘和卷展栏:0.5
这是我在生产轨道上更新推出百分比的途径:
desc "Update production rollout - Usage: fastlane rollout_prod rollout:0.25"
lane :rollout_prod do |options|
supply(
track: 'production',
rollout: options[:rollout], # 0.25
skip_upload_apk: true,
skip_upload_metadata: true,
skip_upload_images: true,
skip_upload_screenshots: true,
skip_upload_changelogs: true,
)
end
我为这个问题做了解决方法。我的工作流程是
- 带曲目upload_to_play_store:测试版
- 从测试版升级到生产版,初始推出百分比,假设为 0.25
desc "Promote beta to production"
lane :init_rollout_prod do
supply(
track: 'beta',
track_promote_to: 'production',
rollout: '0.25',
skip_upload_metadata: true,
skip_upload_images: true,
skip_upload_screenshots: true,
skip_upload_changelogs: true,
skip_upload_apk: true,
skip_upload_aab: true
)
end
- 使用与上述类似的通道更新推出,假设 0.50
desc "update rollout prod"
lane :update_rollout_prod do
supply(
track: 'beta',
track_promote_to: 'production',
rollout: '0.50',
skip_upload_metadata: true,
skip_upload_images: true,
skip_upload_screenshots: true,
skip_upload_changelogs: true,
skip_upload_apk: true,
skip_upload_aab: true
)
end